2017-09-08 5 views
2

virtualenvの起動に問題があります。 私はサーバーで作業していて、SSHセキュアシェルを使用しています。virtualenvを有効にできません:そのようなファイルやディレクトリはありません

[email protected]:~$ python3 -m venv tfenv 
The virtual environment was not created successfully because ensurepip is not 
available. On Debian/Ubuntu systems, you need to install the python3-venv 
package using the following command. 

apt-get install python3-venv 

You may need to use sudo with that command. After installing the python3-venv 
package, recreate your virtual environment. 

[email protected]:~$ source tfenv/bin/activate 
-bash: tfenv/bin/activate: No such file or directory 
[email protected]:~$ cd tfenv 
[email protected]:~/tfenv$ ls 
    bin include lib lib64 pyvenv.cfg 
[email protected]:~/tfenv$ cd bin 
[email protected]:~/tfenv/bin$ ls 
    python python3 

captured image of the commands

は、私は何のアクティブファイルが存在しないことだと思う:

私の最終目標は、virtualenvのをアクティブにし、次のコマンドラインで

tensorflow

の最新バージョンを実行することです。 はたぶん再インストールvirtualenvのがその答えですが、ピップとのpythonのpythonの2つのバージョン( python-all & python-pipパッケージ)を持っている場合、私は..

答えて

1

チェックをサーバーの設定を中断することはできません。 Venvは、python & pipのv2とv3の両方のバージョン(venvのpythonバージョンに関係なく)をインストールします。

+0

ありがとうございました!私は適切なピップセットアップがありませんでした。 – Ecart

関連する問題