[英]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.