virtualenv-6ren">
gpt4 book ai didi

python - 无法使用 "setuptools pip wheel failed with error code 1"创建虚拟环境

转载 作者:可可西里 更新时间:2023-11-01 13:27:34 28 4
gpt4 key购买 nike

我正在使用 Windows 10 和 Python 3.5 64 位。并从 pip 安装 virtualenv

尝试创建新的虚拟环境时,它往往会失败并显示以下日志记录:

  > virtualenv env1

Using base prefix 'c:\\program files\\python 3.5'
New python executable in env1\Scripts\python.exe
Installing setuptools, pip, wheel...
Complete output from command E:\vp\env1\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel:
Ignoring indexes: https://pypi.python.org/simple
Collecting setuptools
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
The repository located at None is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host None'.
Could not find a version that satisfies the requirement setuptools (from versions: )
No matching distribution found for setuptools
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "c:\program files\python 3.5\lib\runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python 3.5\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python 3.5\Scripts\virtualenv.exe\__main__.py", line 9, in <module>
File "c:\program files\python 3.5\lib\site-packages\virtualenv.py", line 832, in main
symlink=options.symlink)
File "c:\program files\python 3.5\lib\site-packages\virtualenv.py", line 1004, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File "c:\program files\python 3.5\lib\site-packages\virtualenv.py", line 969, in install_wheel
'PIP_NO_INDEX': '1'
File "c:\program files\python 3.5\lib\site-packages\virtualenv.py", line 910, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command E:\vp\env1\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error code 1

当使用 --no-setuptools 执行时,它运行良好并创建了一个虚拟环境。

最佳答案

我有同样的错误。我在“F:\灰尘\pathon3.6”安装了 Python。由于中文文本,我得到了这个错误。我注意到您的路径是“c:\program files\python 3.5”,在“program files”中有一个空格。我认为这就是错误发生的原因。

关于python - 无法使用 "setuptools pip wheel failed with error code 1"创建虚拟环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33010458/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com