我在外置高清,当我做virtualenv my_env时,它会引发操作系统错误
OSError: Command /Volumes/Edrive/devel...loud_venv/bin/python setup.py install --single-version-externally-managed --record record failed with error code 1
是否可以在外置硬盘上执行此操作
virtuaenv venv -- command i used
New python executable in venv/bin/python
Installing Setuptools.............................................................................................done.
Installing Pip.......
Complete output from command /Volumes/Edrive/devel...venv/bin/python setup.py install --single-version-externally-managed --record record:
Traceback (most recent call last):
File "setup.py", line 5, in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
----------------------------------------
...Installing Pip...done.
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 9, in <module>
load_entry_point('virtualenv==1.10.1', 'console_scripts', 'virtualenv')()
File "/Library/Python/2.7/site-packages/virtualenv.py", line 821, in main
symlink=options.symlink)
File "/Library/Python/2.7/site-packages/virtualenv.py", line 963, in create_environment
install_sdist('Pip', 'pip-*.tar.gz', py_executable, search_dirs)
File "/Library/Python/2.7/site-packages/virtualenv.py", line 932, in install_sdist
filter_stdout=filter_install_output)
File "/Library/Python/2.7/site-packages/virtualenv.py", line 899, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /Volumes/Edrive/devel...venv/bin/python setup.py install --single-version-externally-managed --record record failed with error code 1
我确实安装了setuptools,它与某些路径错误相关
答案 0 :(得分:0)
是的,您应该能够在任何已安装的可写卷上创建virtualenv。请分享您正在查看的完整追溯以及您正在执行的命令 - 这可能会提供足够的信息,以便有人可以帮助您解决根本问题。
还要告诉我们精确的Python和Virtualenv版本。