2017-10-15 4 views
0

を必要とします:Virtualwrapperはaptで私のUbuntuにvirtualwrapperインストールされているvirtualwrapperをインストールするにsudo PIP3に避けるためにフルのpython3パス

sudo apt-get install virtualenv virtualenvwrapper  

私は私のpython 2.7環境得るか、次のコマンドを使用する場合:

を以下のコマンドーが動作しないのpython3環境を作るために

mkvirtualenvテスト

[email protected]:~$ mkvirtualenv -p python3 test 
The executable /home/test/python3 (from --python=/home/test/python3) does not exist 
私は、次のコマンドーを使用する必要がありますのpython3のenvironementを持つため

mkvirtualenv -p /usr/bin/python3 py3 
Already using interpreter /usr/bin/python3 
Using base prefix '/usr' 
New python executable in /home/test/.vens/py3/bin/python3 
Not overwriting existing python script /home/test/.vens/py3/bin/python (you must use /home/test/.vens/py3/bin/python3) 
Installing setuptools, pkg_resources, pip, wheel...done. 

なぜそれが-pのpython3コマンドを使用して動作しませんか? virtualenvwrapperは、現在の作業ディレクトリを使用してvirtualenv-pオプションを渡し、あなたが得たエラーによる

[email protected]:~$ virtualenv -p python3 test2 
Already using interpreter /usr/bin/python3 
Using base prefix '/usr' 
New python executable in /home/test/test2/bin/python3 
Also creating executable in /home/test/test2/bin/python 
Installing setuptools, pkg_resources, pip, wheel...done. 
+0

あなたの質問は何ですか? – vipertherapper

+0

コマンド 'which python3'はあなたに何を伝えますか? – davedwards

答えて

2

:私はvirtualenvのと同じコマンドを使用すると

は、それが動作します。

あなたは実行する必要があります。

mkvirtualenv -p `which python3` test 
+0

ありがとうございます。私は今virtualenvwrapperの動作方法を理解しています:) – fossekall

関連する問題