pyramid virtualenv assertionerror

极简丰盛人生 2014-01-03 01:17:50
S:\>virtualenv test
New python executable in test\Scripts\python.exe
Installing setuptools, pip...
Complete output from command S:\test\Scripts\python.exe -c "import sys, pip; p
ip...ll\"] + sys.argv[1:])" setuptools pip:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\pip-1.5-py2.py3-none-any.whl\pip\__init__.py", line 9, in <module>
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\pip-1.5-py2.py3-none-any.whl\pip\log.py", line 8, in <module>
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\setuptools-2.0.2-py2.py3-none-any.whl\pkg_resources.py", line 2696, in <modul
e>
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\setuptools-2.0.2-py2.py3-none-any.whl\pkg_resources.py", line 429, in __init_
_
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\setuptools-2.0.2-py2.py3-none-any.whl\pkg_resources.py", line 443, in add_ent
ry
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\setuptools-2.0.2-py2.py3-none-any.whl\pkg_resources.py", line 1722, in find_i
n_zip
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\setuptools-2.0.2-py2.py3-none-any.whl\pkg_resources.py", line 1298, in has_me
tadata
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\setuptools-2.0.2-py2.py3-none-any.whl\pkg_resources.py", line 1614, in _has
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv_suppo
rt\setuptools-2.0.2-py2.py3-none-any.whl\pkg_resources.py", line 1488, in _zipin
fo_name
AssertionError: C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\EGG-INFO
\PKG-INFO is not a subpath of C:\Python27\lib\site-packages\virtualenv-1.11-py2.
7.egg\virtualenv_support\setuptools-2.0.2-py2.py3-none-any.whl\
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
File "C:\Python27\Scripts\virtualenv-script.py", line 9, in <module>
load_entry_point('virtualenv==1.11', 'console_scripts', 'virtualenv')()
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv.py",
line 820, in main
symlink=options.symlink)
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv.py",
line 988, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv.py",
line 956, in install_wheel
'PIP_NO_INDEX': '1'
File "C:\Python27\lib\site-packages\virtualenv-1.11-py2.7.egg\virtualenv.py",
line 898, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command S:\test\Scripts\python.exe -c "import sys, pip; pip...ll\"] + s
ys.argv[1:])" setuptools pip failed with error code 1
...全文
404 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
adousen 2014-01-06
  • 打赏
  • 举报
回复
virtualenv 1.11在PYPI的版本说明里要求 * Upgraded pip to v1.5 * Upgraded setuptools to v1.4 所以pip若只是v1.5,setuptools是其他版本,也是不行的,setuptools必须是1.4
adousen 2014-01-05
  • 打赏
  • 举报
回复
我的解决是 1.首先升级 setuptools至1.4。 从https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.tar.gz下周 setuptools1.4 然后进入site-packages setuptools1.4的目录,执行命令: python setup.py build python setup.py install 2.通过pip安装virtualenv easy_install pip pip install virtualenv==1.11 3.安装虚拟python环境 virtualenv test
zjh19870703 2014-01-04
  • 打赏
  • 举报
回复
哥们。你这问题解决了没?我也遇到,如果解决了,请问你是怎么做的 ?

37,741

社区成员

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

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