安装virtualenv后,开始虚拟环境但一直报这个错误

冰封的法师 2015-07-12 11:44:38
安装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
...全文
7311 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
cquptzzq 2016-09-15
  • 打赏
  • 举报
回复
我在win7环境下从来没有这个问题。今天切换到win10安装环境才发现这个问题。 解决方式:需要按照提示,到底是setuptools还是pip、wheel 如果都无法安装就加上参数--no-setuptools --no-pip --no-wheel, 这样起码能安装好virtualenv环境,然后你再去考虑pip的事情。 所以,有可能是跟virtualenv无法兼容win8以上的操作系统有关。
qq_25934169 2016-01-12
  • 打赏
  • 举报
回复
virtualenv 对空格很敏感,不仅要求虚拟环境所在的路径中没有空格,还要求python的安装路径没有空格。所以只要把python重新安装在路径没空格的位置就解决了。
qq_27086159 2015-12-03
  • 打赏
  • 举报
回复
引用 2 楼 ran_____ 的回复:
virtualenv test --no-setuptools --no-pip --no-wheel
我根据提示 只是 --no-setuptools 就正常了,我估计楼主和我是一样的。
ran_____ 2015-10-29
  • 打赏
  • 举报
回复
virtualenv test --no-setuptools --no-pip --no-wheel
yshaqq 2015-09-18
  • 打赏
  • 举报
回复
楼主问题解决了么,我刚开始学习Python,遇到这个问题,想咨询下怎么解决。

37,743

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧