[英]metadata-generation-failed while installing Conda
我試圖在命令提示符中使用 pip 安裝 conda,我搜索與此錯誤相關的任何地方,但我發現沒有任何東西可以幫助我解決這個問題。
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:\users\asus\appdata\local\programs\python\python37\lib\site-packages
(from conda) (0.6.3)
Requirement already satisfied: requests>=2.12.4 in c:\users\asus\appdata\local\programs\python\python37\lib\site-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:\Users\ASUS\AppData\Local\Temp\pip-install-89w5h0p1\conda_ae1fc222c1a04f2ca50dbd3c45396cdf\setup.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 安裝程序。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.