安装软件包时出错:RemoveError:'setuptools'是conda的依赖项

时间:2020-06-27 18:25:25

标签: python installation

尝试在python中安装软件包时遇到问题。具体来说,我正在Quantecon网站上学习该语言,该网站提供了以下代码行,以便在提示符下安装软件包(注意:我已经安装了anaconda):

# Install Python packages
conda install geopandas python-graphviz
conda install -c conda-forge nodejs
pip install qeds pyLDAvis gensim folium xgboost descartes pyarrow graphviz --upgrade

但是,当我运行conda install geopandas python-graphviz时,提示返回错误:

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

寻找其他答案,我尝试运行“ conda更新conda”和“ conda更新setuptools”,但是“ conda更新conda”返回相同的错误:

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

“ conda update setuptools”返回错误时:

PackageNotInstalledError: Package is not installed in prefix.
  prefix: C:\Users\franc\anaconda3
  package name: setuptools

我已打印出整个安装过程(在“重要”部分之间使用.......),以防它帮助某人解决问题。如果有人可以帮助我,我将不胜感激。预先感谢!

Collecting package metadata (current_repodata.json): done
Solving environment: /
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - defaults/win-64::alabaster==0.7.12=py37_0
  - defaults/win-64::anaconda==2020.02=py37_0

.......

done


==> WARNING: A newer version of conda exists. <==
  current version: 4.8.2
  latest version: 4.8.3

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:\Users\franc\anaconda3

  added / updated specs:
    - geopandas
    - python-graphviz


The following packages will be downloaded:

..........

The following NEW packages will be INSTALLED:

 .........

The following packages will be UPDATED:

  .........

The following packages will be DOWNGRADED:

  anaconda                                   2020.02-py37_0 --> custom-py37_1


Proceed ([y]/n)? y


Downloading and Extracting Packages
.........
Preparing transaction: done
Verifying transaction: failed

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


0 个答案:

没有答案