Pyenv VirtualEnv - setuptools pip wheel失败,错误代码为1

时间:2017-07-12 11:00:31

标签: python python-3.x virtualenv pyenv

每次我尝试安装高于2.7.12的virtualenv版本时,我都会收到类似下面的错误消息。我几乎尝试了一切,甚至重新安装pyenv& virtualenv并没有帮助我。我是python的初学者,但我认为pip存在问题。

我注意到我的系统缺少一些库,但是逐个安装它们毫无意义。

konrad@konrad-VPCEB2S1E:~/.pyenv/versions$ pyenv virtualenv 3.0.1 VirtualEnv_3.0.1
New python executable in /home/konrad/.pyenv/versions/3.0.1/envs/VirtualEnv_3.0.1/bin/python3.0
Also creating executable in /home/konrad/.pyenv/versions/3.0.1/envs/VirtualEnv_3.0.1/bin/python
Installing setuptools, pip, wheel...
  Complete output from command /home/konrad/.pyenv/..._3.0.1/bin/python3.0 - setuptools pip wheel:
  Traceback (most recent call last):
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/_collections.py", line 15, in <module>
ImportError: cannot import name OrderedDict

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/packages/ordered_dict.py", line 6, in <module>
ImportError: No module named thread

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/__init__.py", line 27, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/__init__.py", line 8, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 35, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/connection.py", line 54, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/_collections.py", line 17, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/packages/ordered_dict.py", line 8, in <module>
ImportError: No module named dummy_thread

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 7, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/__init__.py", line 21, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/__init__.py", line 62, in <module>
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/__init__.py", line 29, in <module>
ImportError: No module named urllib3
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/home/konrad/.pyenv/versions/3.0.1/bin/virtualenv", line 9, in <module>
    load_entry_point('virtualenv==15.1.0', 'console_scripts', 'virtualenv')()
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv.py", line 945, in create_environment
    download=download,
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv.py", line 901, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/home/konrad/.pyenv/versions/3.0.1/lib/python3.0/site-packages/virtualenv.py", line 797, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/konrad/.pyenv/..._3.0.1/bin/python3.0 - setuptools pip wheel failed with error code 1

0 个答案:

没有答案