在下面的代码中,我已经激活了虚拟环境,现在我正在尝试停用它。我正在使用ubuntu服务器。我用conda创建了环境。我不确定是什么问题。我敢肯定,我之前已经在此服务器上完成了此操作。我也尝试过启动没有运气的jupyter笔记本。我以前没有在服务器上尝试过这种方法,因此不确定它们是否相关。任何提示都将不胜感激。
代码:
(base) username@server1:~$ source activate py27
(py27) username@server1:~$ jupyter notebook
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory
(py27) username@server1:~$ source deactivate py27
-bash: deactivate: No such file or directory
(py27) username@server1:~$ deactivate py27
deactivate: command not found
(py27) username@server1:~$ conda source deactivate py27
CommandNotFoundError: No command 'conda source'.
(py27) username@server1:~$ deactivate source py27
deactivate: command not found
(py27) username@server1:~$ conda deactivate source py27
deactivate does not accept arguments
remainder_args: ['source', 'py27']
答案 0 :(得分:0)
这可以停用虚拟python环境
conda deactivate