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