【问题标题】:Issues installing OSMnx in conda在 conda 中安装 OSMnx 的问题
【发布时间】: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 升级到最新版本。

标签: python conda osmnx


【解决方案1】:

您使用的是几年前的 conda 4.5.4。更新到最新版本就可以了:conda update conda

【讨论】:

    猜你喜欢
    • 2021-07-21
    • 1970-01-01
    • 1970-01-01
    • 2022-10-13
    • 2022-12-08
    • 1970-01-01
    • 1970-01-01
    • 2023-03-08
    • 2023-04-06
    相关资源
    最近更新 更多