前提・実現したいこと
pipをインストールしたく、下記のコードを入力したところ
pip freeze --local | grep -v '^-e' | cut -d = -f 1 | xargs pip install -U --user
次のようなエラーメッセージが表示されました。
発生している問題・エラーメッセージ
ERROR:
1 command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/yh/n5r2vrzx40z52fgvq02vf9bc0000gn/T/pip-install-kCPVgf/xattr/setup.py'"'"'; __file__='"'"'/private/var/folders/yh/n5r2vrzx40z52fgvq02vf9bc0000gn/T/pip-install-kCPVgf/xattr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/yh/n5r2vrzx40z52fgvq02vf9bc0000gn/T/pip-install-kCPVgf/xattr/pip-egg-info 2 cwd: /private/var/folders/yh/n5r2vrzx40z52fgvq02vf9bc0000gn/T/pip-install-kCPVgf/xattr/ 3 Complete output (25 lines): 4 Download error on https://pypi.python.org/simple/cffi/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found! 5 Couldn't find index page for 'cffi' (maybe misspelled?) 6 Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) -- Some packages may not be found! 7 No local packages or download links found for cffi>=1.0.0 8 Traceback (most recent call last): 9 File "<string>", line 1, in <module> 10 File "/private/var/folders/yh/n5r2vrzx40z52fgvq02vf9bc0000gn/T/pip-install-kCPVgf/xattr/setup.py", line 56, in <module> 11 zip_safe=False, 12 File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup 13 _setup_distribution = dist = klass(attrs) 14 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 268, in __init__ 15 self.fetch_build_eggs(attrs['setup_requires']) 16 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 313, in fetch_build_eggs 17 replace_conflicting=True, 18 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 843, in resolve 19 dist = best[req.key] = env.best_match(req, ws, installer) 20 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1088, in best_match 21 return self.obtain(req, installer) 22 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1100, in obtain 23 return installer(requirement) 24 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 380, in fetch_build_egg 25 return cmd.easy_install(req) 26 File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 632, in easy_install 27 raise DistutilsError(msg) 28 distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=1.0.0') 29 ---------------------------------------- 30ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 31 32### 該当のソースコード 33 34pythonを用いてます 35
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー