【发布时间】:2020-08-15 02:14:47
【问题描述】:
我在尝试在 conda 中安装 OSMnx 时遇到了一些麻烦。根据 github https://github.com/gboeing/osmnx 上的 OSMnx 文档,我必须在 conda 提示符中运行以下代码才能安装
conda config --prepend channels conda-forge
conda create -n ox --strict-channel-priority osmnx
但是,我收到了一些我不理解的警告和错误。
(base) C:\WINDOWS\system32>conda config --prepend channels conda-forge
Warning: 'conda-forge' already in 'channels' list, moving to the top
(base) C:\WINDOWS\system32>conda create -n ox --strict-channel-priority osmnx
usage: conda [-h] [-V] command ...
conda: error: unrecognized arguments: --strict-channel-priority
我不知道我做错了什么。这些是我的 conda 规范,以防万一
conda version : 4.5.4
conda-build version : 3.10.5
python version : 3.6.5.final.0
非常感谢您的帮助。
【问题讨论】:
-
您的 conda 版本非常旧,可能还不支持该选项。尝试将 conda 升级到最新版本。