metadata-generation-failed while installing Conda

Question:

I was trying to install conda using pip in Command Prompt, I search Everywhere related to this error but I found Nothing that can help me with the problem.

pip install conda

but I got this error:

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.

Please help me to find a solution for this error.

Asked By: Dev

||

Answers:

pip is not the correct way to install conda

See the pypi page

WARNING: Using pip install conda or easy_install conda will not give you conda as a standalone application. Currently supported install methods include the Anaconda installer and the miniconda installer.

Answered By: FlyingTeller

I found a solution to this problem.

the problem in line

  ModuleNotFoundError: No module named 'auxlib'

so I just install auxlib by using

pip install auxlib

and then my problem was resolved.

Answered By: Dev
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.