无法激活virtualenv:没有这样的文件或目录

时间:2017-09-08 13:34:56

标签: virtualenv

我有激活virtualenv的问题。 我正在使用服务器并使用SSH安全shell。

我的最终目标是激活virtualenv并运行最新版本的tensorflow

以下是命令行:

jeonguyoang@vision6:~$ 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.

jeonguyoang@vision6:~$ source tfenv/bin/activate
-bash: tfenv/bin/activate: No such file or directory
jeonguyoang@vision6:~$ cd tfenv
jeonguyoang@vision6:~/tfenv$ ls
    bin  include  lib  lib64  pyvenv.cfg
jeonguyoang@vision6:~/tfenv$ cd bin
jeonguyoang@vision6:~/tfenv/bin$ ls
    python  python3

captured image of the commands

我认为没有激活文件。 也许重新安装virtualenv就是答案,但我无法中断服务器设置..

1 个答案:

答案 0 :(得分:1)

检查你是否有python 2版本的pip和python(python-all& python-pip包。 Venv安装了python和amp;的v2和v3版本。 pip(不管pyv版本的venv)。

相关问题