虚拟机上的Python virtualenv问题

时间:2016-05-01 20:41:05

标签: python virtualbox virtualenv symlink

大家好我收到以下错误:

Traceback (most recent call last):
   File "/usr/local/bin/virtualenv", line 11, in <module>
sys.exit(main())
   File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 708, in main
symlink=options.symlink)
   File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 921, in create_environment
     site_packages=site_packages, clear=clear, symlink=symlink))
   File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 1353, in    install_python
     os.symlink(py_executable_base, full_pth)
 OSError: [Errno 30] Read-only file system

我正在尝试在Windows主机7和Ubuntu guest虚拟机之间的共享文件中安装我的测试环境。

我用Google搜索了tutorial

我让它工作并运行

 VBoxManage getextradata 5bc6053b-bc8b-42c7-9c58-24935d281a82 enumerate

得到:

 Key: GUI/LastCloseAction, Value: PowerOff
 Key: GUI/LastGuestSizeHint, Value: 1218,736
 Key: GUI/LastNormalWindowPosition, Value: 70,30,624,282,max
 Key: GUI/RestrictedRuntimeDevicesMenuActions, Value: HardDrives
 Key: GUI/RestrictedRuntimeMachineMenuActions, Value: SaveState,PowerOff
 Key: GUI/StatusBar/IndicatorOrder, Value: HardDisks,OpticalDisks,FloppyDisks,Network,USB,SharedFolders,Display,VideoCapture,Features,Mouse,Keyboard
 Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/sv_vmShare, Value: 1

 C:\Program Files\Oracle\VirtualBox>

值得注意的是:

  Key: VBoxInternal2/SharedFoldersEnableSymlinksCreate/sv_vmShare, Value: 1

似乎表明sym-links已启用且功能正常,但即使重新启动guest虚拟机和主机仍然会产生协议错误。 e

编辑:

可以在guest虚拟机的/ home /文件中运行virtualenv,它只是给我问题的共享文件夹。我真的想从共享文件夹中完成我的工作,以便更容易开发

0 个答案:

没有答案