安装Conda时元数据生成失败



我试图在命令提示符中使用pip安装conda,我搜索了与此错误相关的Everywhere,但没有发现任何可以帮助我解决此问题的内容。

pip install conda

但我得到了这个错误:

Collecting conda
Using cached conda-4.3.16.tar.gz (299 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pycosat>=0.6.1 in c:usersasusappdatalocalprogramspythonpython37libsite-packages
(from conda) (0.6.3)
Requirement already satisfied: requests>=2.12.4 in c:usersasusappdatalocalprogramspythonpython37libsite-package
s (from conda) (2.26.0)
Collecting ruamel.yaml>=0.11.14
Using cached ruamel.yaml-0.17.21-py3-none-any.whl (109 kB)
Collecting conda
Using cached conda-4.3.13.tar.gz (370 kB)
Preparing metadata (setup.py) ... done
Using cached conda-4.2.7.tar.gz (235 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:UsersASUSAppDataLocalTemppip-install-89w5h0p1conda_ae1fc222c1a04f2ca50dbd3c45396cdfsetup.py", line 32, in <module>
from conda._vendor.auxlib import packaging  # NOQA
ModuleNotFoundError: No module named 'auxlib'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: There was an error checking the latest version of pip.

请帮我找到这个错误的解决方案。

我找到了这个问题的解决方案。

线路中的问题

ModuleNotFoundError: No module named 'auxlib'

所以我只是用安装auxlib

pip install auxlib

然后我的问题就解决了。

pip不是安装conda的正确方法

请参阅pypi页面

警告:使用pip-install conda或easy_install conda不会将conda作为一个独立的应用程序。目前支持的安装方法包括Anaconda安装程序和miniconda安装程序。

最新更新