我正在使用我的 debian 测试运行 Python 2.7,并且我在使用 virtualenv 时遇到了问题。
我试图在一个挂载的分区上创建一个 virtualenv
/dev/sda5 /media/misc vfat users,defaults,uid=1000,gid=1000,exec,umask=0 0 0
所以,权利似乎没问题,但 virtualenv 回报我:
Traceback (most recent call last):
File "/usr/bin/virtualenv", line 3, in <module>
virtualenv.main()
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 938, in main
never_download=options.never_download)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 1039, in create_environment
site_packages=site_packages, clear=clear))
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 1186, in install_python
copyfile(join(stdlib_dir, fn), join(lib_dir, fn))
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 430, in copyfile
copyfileordir(src, dest)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 405, in copyfileordir
shutil.copytree(src, dest, True)
File "/usr/lib/python2.7/shutil.py", line 206, in copytree
raise Error, errors
shutil.Error: [('/usr/lib/python2.7/config/libpython2.7.so', 'seb/lib/python2.7/config /libpython2.7.so', '[Errno 1] Operation not permitted')]
我已经用apt安装了virtualenv。在我的 /home 中使用 virtualenv 是成功的
你能帮助我吗 ?