我想在没有 root 权限的 Linux 机器上安装 virtualenv。我在 nettuts(http://net.tutsplus.com/tutorials/python-tutorials/python-power-tools-virtualenv/)上看到了截屏视频,并尝试按照这些步骤操作,但出现以下错误。
任何帮助表示赞赏。
/home/x01010/python/virtualenv-1.9.1 > which python
/opt/xpyv/bin/python
/home/x01010/python/virtualenv-1.9.1 > python virtualenv.py foo
PYTHONHOME is set. You *must* activate the virtualenv before using it
Traceback (most recent call last):
File "virtualenv.py", line 2577, in <module>
main()
File "virtualenv.py", line 979, in main
no_pip=options.no_pip)
File "virtualenv.py", line 1081, in create_environment
site_packages=site_packages, clear=clear))
File "virtualenv.py", line 1289, in install_python
writefile(site_filename_dst, SITE_PY)
File "virtualenv.py", line 445, in writefile
f = open(dest, 'wb')
IOError: [Errno 2] No such file or directory: 'foo/lib/python26.zip/site.py'</module>
谢谢