VirtualBox中的Ubuntu服務器。我正在嘗試安裝VirtualEnv以開始學習燒瓶和燒瓶。 我的設置的一些細節。Ubuntu中的Virtualenv和VirtualenvWrapper的安裝問題13.04
[email protected]:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="12.04.2 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.2 LTS)"
VERSION_ID="12.04"
[email protected]:~$ python --version
Python 2.7.3
[email protected]:~$ echo $VIRTUALENVWRAPPER_PYTHON
/usr/bin/python
[email protected]:~$ echo $VIRTUALENV_PYTHON
[email protected]:~$
當我啓動我的虛擬機,我收到以下錯誤我的控制檯
/usr/bin/python: No module named virtualenvwrapper
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenv has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
,當我嘗試初始化的virtualenv我收到以下錯誤
[email protected]:~/dropbox/venv$ virtualenv try1
New python executable in try1/bin/python3.2
Also creating executable in try1/bin/python
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 9, in <module>
load_entry_point('virtualenv==1.9.1', 'console_scripts', 'virtualenv')()
File "/usr/local/lib/python3.2/dist-packages/virtualenv.py", line 979, in main
no_pip=options.no_pip)
File "/usr/local/lib/python3.2/dist-packages/virtualenv.py", line 1081, in create_environment
site_packages=site_packages, clear=clear))
File "/usr/local/lib/python3.2/dist-packages/virtualenv.py", line 1499, in install_python
os.symlink(py_executable_base, full_pth)
OSError: [Errno 30] Read-only file system
[email protected]:~/dropbox/venv$ ls
try1
[email protected]:~/dropbox/venv$ ls try1/
bin include lib
[email protected]:~/dropbox/venv$
我。 bashrc條目
export WORKON_HOME='~/dropbox/venv/'
source '/usr/local/bin/virtualenvwrapper.sh'
Q1 - 按照啓動時的錯誤,我如何確保爲VIRTUALENVWRAPPER_PYTHON =/usr/bin/python安裝了virtualenv,並且該PATH是否正確設置了 ?
Q2 - 即使使用sudo,我也會得到相同的「只讀文件系統」錯誤?
我已經嘗試使用pip安裝virtualenv然後apt-get,只是爲了打擊和嘗試。
您的磁盤已滿? –
不,它沒有滿。 /dev/sda1 7.4G 2.3G 4.8G 33%/ –
你是如何安裝virtualenvwrapper的? –