当前位置: 首页 > 工具软件 > pyqrcode > 使用案例 >

centos 下安装PyQRCode python

薛文斌
2023-12-01
https://pypi.org/project/qrcode/6.0/
qr --factory=svg-path "Some text" > test.svg
qr --factory=svg "Some text" > test.svg
qr --factory=svg-fragment "Some text" > test.svg

1、安装python

yum -y install python

2、安装python qrcode所需扩展

yum -y install epel-release
yum -y install python-pip
pip install --upgrade pip

注:Traceback (most recent call last):
  File "/usr/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2797, in <module>
  File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 576, in resolve
pkg_resources.DistributionNotFound: pip==6.0.7

vim /usr/bin/pip 后修改版本号

3、安装qrcode

pip install qrcode

参考网址

https://blog.csdn.net/qqxx6661/article/details/70837467

 

 类似资料: