0
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.
あなたの質問は何ですか? – vipertherapper
コマンド 'which python3'はあなたに何を伝えますか? – davedwards