proxy 経由のネットワーク環境で、あるpython モジュールをインストールしたら以下のエラー
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
ERROR: Command errored out with exit status 1: command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hSxJgS/pycef/setup.py'"'"'; __file__='"'"'/tmp/pip-install-hSxJgS/pycef/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 /tmp/pip-install-hSxJgS/pycef/pip-egg-info cwd: /tmp/pip-install-hSxJgS/pycef/ Complete output (17 lines): Download error on https://pypi.org/simple/pytest-runner/: [Errno 104] Connection reset by peer -- Some packages may not be found! Couldn't find index page for 'pytest-runner' (maybe misspelled?) Download error on https://pypi.org/simple/: [Errno 104] Connection reset by peer -- Some packages may not be found! No local packages or working download links found for pytest-runner Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-hSxJgS/pycef/setup.py", line 27, in <module> "License :: OSI Approved :: MIT License" File "build/bdist.linux-x86_64/egg/setuptools/__init__.py", line 128, in setup File "build/bdist.linux-x86_64/egg/setuptools/__init__.py", line 123, in _install_setup_requires File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 514, in fetch_build_eggs File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 770, in resolve File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1053, in best_match File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 1065, in obtain File "build/bdist.linux-x86_64/egg/setuptools/dist.py", line 581, in fetch_build_egg File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 667, in easy_install distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner') ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. |
setup.py の setup_requires pytest-runner が入っているんだけど、それが取ってこれないみたい。
setup_requires を処理するときは、pip で指定した –proxy の指定引き継がれてないのか。
install_requires を処理すときは、–proxy の宛先を引き継いでるっぽい。
とりあえず、別途 pytest-runner を pip でインストールして解決した。