Noams-MacBook-Pro:文件夹noam $ sudo -H python -m pip install qrcode 弃用:Python 2.7将于1月1日到期, 2020年。请升级您的Python,因为该日期之后将不再维护Python 2.7。 pip的未来版本将放弃对Python的支持 2.7。已满足要求:/Library/Python/2.7/site-packages(6.1)中的qrcode已满足要求: /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python中的六个 (来自qrcode)(1.4.1)
然后
Noams-MacBook-Pro:文件夹noam $ qr
-bash:qr:找不到命令
Noams-MacBook-Pro:文件夹noam $ qrcode
-bash:qrcode:命令未找到
编辑:
pip show --files qrcode
显示:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Name: qrcode
Version: 6.1
Summary: QR Code image generator
Home-page: https://github.com/lincolnloop/python-qrcode
Author: Lincoln Loop
Author-email: info@lincolnloop.com
License: BSD
Location: /Library/Python/2.7/site-packages
Requires: six
Required-by:
Files:
qrcode-6.1.data/data/share/man/man1/qr.1
qrcode-6.1.dist-info/LICENSE
qrcode-6.1.dist-info/METADATA
qrcode-6.1.dist-info/RECORD
qrcode-6.1.dist-info/WHEEL
qrcode-6.1.dist-info/entry_points.txt
qrcode-6.1.dist-info/top_level.txt
qrcode/LUT.py
qrcode/__init__.py
qrcode/base.py
qrcode/console_scripts.py
qrcode/constants.py
qrcode/exceptions.py
qrcode/image/__init__.py
qrcode/image/base.py
qrcode/image/pil.py
qrcode/image/pure.py
qrcode/image/svg.py
qrcode/main.py
qrcode/release.py
qrcode/tests/__init__.py
qrcode/tests/svg.py
qrcode/tests/test_example.py
qrcode/tests/test_qrcode.py
qrcode/tests/test_release.py
qrcode/tests/test_script.py
qrcode/util.py