0

我在使用 Conda Forge 安装包时遇到了麻烦,即 GeoPandas 和 OSMNX。它一直停留在“解决环境”上。

所以我试图更新我的 Anaconda 发行版,希望能解决问题。

我试过了conda update --allconda update anacondaconda update conda

这些中的每一个都因相同的问题而失败:

Preparing transaction: done
Verifying transaction: failed

RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.

这是完整的输出:

Aschs-MacBook-Air-2:~ aschharwood$ conda update conda
Collecting package metadata: done
Solving environment: done

## Package Plan ##

  environment location: /anaconda

  added / updated specs:
    - conda


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    asn1crypto-0.24.0          |           py36_0         154 KB
    cffi-1.12.1                |   py36hb5b8e2f_0         212 KB
    chardet-3.0.4              |           py36_1         189 KB
    cryptography-2.5           |   py36ha12b0ac_0         590 KB
    idna-2.8                   |           py36_0         133 KB
    pip-19.0.3                 |           py36_0         1.9 MB
    pycosat-0.6.3              |   py36h1de35cc_0         107 KB
    pycparser-2.19             |           py36_0         173 KB
    pyopenssl-19.0.0           |           py36_0          81 KB
    ruamel_yaml-0.11.14        |   py36h9d7ade0_2         192 KB
    setuptools-40.8.0          |           py36_0         622 KB
    six-1.12.0                 |           py36_0          22 KB
    wheel-0.33.1               |           py36_0          39 KB
    ------------------------------------------------------------
                                           Total:         4.3 MB

The following NEW packages will be INSTALLED:

  pip                pkgs/main/osx-64::pip-19.0.3-py36_0
  setuptools         pkgs/main/osx-64::setuptools-40.8.0-py36_0
  six                pkgs/main/osx-64::six-1.12.0-py36_0

The following packages will be UPDATED:

  asn1crypto            pkgs/free::asn1crypto-0.22.0-py36_0 --> pkgs/main::asn1crypto-0.24.0-py36_0
  cffi                        pkgs/free::cffi-1.10.0-py36_0 --> pkgs/main::cffi-1.12.1-py36hb5b8e2f_0
  chardet                   pkgs/free::chardet-3.0.4-py36_0 --> pkgs/main::chardet-3.0.4-py36_1
  cryptography                         2.4.2-py36ha12b0ac_0 --> 2.5-py36ha12b0ac_0
  idna                           pkgs/free::idna-2.6-py36_0 --> pkgs/main::idna-2.8-py36_0
  pycparser                pkgs/free::pycparser-2.18-py36_0 --> pkgs/main::pycparser-2.19-py36_0
  pyopenssl              pkgs/free::pyopenssl-17.0.0-py36_0 --> pkgs/main::pyopenssl-19.0.0-py36_0
  ruamel_yaml         pkgs/free::ruamel_yaml-0.11.14-py36_1 --> pkgs/main::ruamel_yaml-0.11.14-py36h9d7ade0_2
  wheel                      pkgs/free::wheel-0.29.0-py36_0 --> pkgs/main::wheel-0.33.1-py36_0

The following packages will be SUPERSEDED by a higher-priority channel:

  pycosat            conda-forge::pycosat-0.6.3-py36h470a2~ --> pkgs/main::pycosat-0.6.3-py36h1de35cc_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
pyopenssl-19.0.0     | 81 KB     | ##################################### | 100% 
setuptools-40.8.0    | 622 KB    | ##################################### | 100% 
cryptography-2.5     | 590 KB    | ##################################### | 100% 
asn1crypto-0.24.0    | 154 KB    | ##################################### | 100% 
ruamel_yaml-0.11.14  | 192 KB    | ##################################### | 100% 
pycosat-0.6.3        | 107 KB    | ##################################### | 100% 
six-1.12.0           | 22 KB     | ##################################### | 100% 
cffi-1.12.1          | 212 KB    | ##################################### | 100% 
wheel-0.33.1         | 39 KB     | ##################################### | 100% 
idna-2.8             | 133 KB    | ##################################### | 100% 
pycparser-2.19       | 173 KB    | ##################################### | 100% 
chardet-3.0.4        | 189 KB    | ##################################### | 100% 
pip-19.0.3           | 1.9 MB    | ##################################### | 100% 
Preparing transaction: done
Verifying transaction: failed

RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.
4

1 回答 1

0

根据OSMnx 文档,如果您有任何问题,请尝试在虚拟环境中安装:

conda create --override-channels -c conda-forge -n OSMNX python=3 osmnx
source activate OSMNX
于 2019-03-07T14:21:01.140 回答