[英]I got a syntax error by activating environment on Conda
这是我输入的完整代码:
输入:
conda create --name my_app27 python=2.7 flask sqlalchemy --yes
source activate my_app27
output:
File "<ipython-input-2-9a6e240537c9>", line 1
source activate my_app27
^
SyntaxError: invalid syntax
然后我又试了一个
输入:
conda activate my_app27
output:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
Note: you may need to restart the kernel to use updated packages.
这是为什么?? 激活环境出现语法错误怎么办?
而不是 source activate my_shell 类型 conda activate my_shell。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.