2017-09-08 76 views
2

我有激活virtualenv问题。 我正在使用服务器并使用SSH安全shell。无法激活virtualenv:没有这样的文件或目录

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

的下面是命令行:

[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是答案,但我不能中断服务器设置..

回答

1

检查,如果你有蟒蛇2个版本的点子和Python(python-all & python-pip包)的。 Venv安装python & pip的v2和v3版本(无论venv的python版本如何)。

+0

谢谢!我没有正确的点子设置。 – Ecart

相关问题