安装virtualenv后,开始虚拟环境但一直报这个错误
安装virtualenv后,开始虚拟环境但一直报这个错误
G:\>virtualenv test
New python executable in test\Scripts\python.exe
Installing setuptools, pip, wheel...
Complete output from command G:\test\Scripts\python.exe -c "import sys, pip; s
ys...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 ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
Could not find a version that satisfies the requirement setuptools (from versi
ons: )
No matching distribution found for setuptools
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "D:\program files\Python27\Scripts\virtualenv-script.py", line 9, in <mod
ule>
load_entry_point('virtualenv==13.1.0', 'console_scripts', 'virtualenv')()
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 832, in main
symlink=options.symlink)
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 1004, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 969, in install_wheel
'PIP_NO_INDEX': '1'
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 910, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command G:\test\Scripts\python.exe -c "import sys, pip; sys...d\"] + sy
s.argv[1:]))" setuptools pip wheel failed with error code 1
请问到底出了什么问题,怎么解决?我现在用的是win8.1 64bit python环境2.7.10 64bit
G:\>virtualenv test
New python executable in test\Scripts\python.exe
Installing setuptools, pip, wheel...
Complete output from command G:\test\Scripts\python.exe -c "import sys, pip; s
ys...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 ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
The repository located at None is not a trusted or secure host and is being ig
nored. 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 '--tru
sted-host None'.
Could not find a version that satisfies the requirement setuptools (from versi
ons: )
No matching distribution found for setuptools
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "D:\program files\Python27\Scripts\virtualenv-script.py", line 9, in <mod
ule>
load_entry_point('virtualenv==13.1.0', 'console_scripts', 'virtualenv')()
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 832, in main
symlink=options.symlink)
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 1004, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 969, in install_wheel
'PIP_NO_INDEX': '1'
File "D:\Program Files\Python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py", line 910, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command G:\test\Scripts\python.exe -c "import sys, pip; sys...d\"] + sy
s.argv[1:]))" setuptools pip wheel failed with error code 1
请问到底出了什么问题,怎么解决?我现在用的是win8.1 64bit python环境2.7.10 64bit
...全文
相关推荐
虚拟环境的常用命令 virtualenv命令
在创建虚拟环境时,有时可能会遇到错误,比如 `OSError: Command ... failed with error code 2`。这通常是由于安装过程中的依赖问题导致的。
使用虚拟环境打包python为exe 文件的方法
此外,还可以指定Python版本,如使用virtualenv创建虚拟环境时指定了Python版本为2.7。进入虚拟环境之后,可以使用pip安装所需的依赖库。
virtualenv安装
"这篇文档介绍了如何在Linux系统中安装和管理`virtualenv`,一个用于创建隔离Python环境的工具,以及其扩展包`virtualenvwrapper`,以简化虚拟环境的管理工作。"
pyenv-virtualenv:用于管理virtualenv的pyenv插件(又名python-virtualenv)
pyenv-virtualenv插件自2012年发布以来,不断更新以支持多版本Python,优化虚拟环境管理,增强与Anaconda/Miniconda兼容性,改进激活脚本,并修复多个问题。同时,更新
virtualenv使用详解[可运行源码]
virtualenv的使用显著提升了Python项目的管理效率和可维护性。通过为每个项目创建独立的开发环境,开发者可以避免因版本不兼容导致的错误,同时也能确保开发环境的一致性。


