【发布时间】:2020-01-08 13:37:49
【问题描述】:
出于我的目的,我需要 Google Colab 中的 osmNX
以前有人做过吗?我使用以下命令:
!wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh && bash Anaconda3-2019.07-Linux-x86_64.sh -bfp /usr/local
import sys
sys.path.append('/usr/local/lib/python3.6/site-packages')
!conda config --prepend channels conda-forge
命令:
!conda info --envs
表示环境创建成功。
当我运行命令时:
!conda activate ox
错误显示:
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'.
命令
!conda init bash
没有效果。
感谢您的帮助
【问题讨论】:
标签: osmnx