errored out with exit status 1: python setup.py egg_info Check the logs for full command output

使用pip安装git时,报错:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.具体如下面:

        'Programming Language :: Python :: Implementation :: PyPy'
      File "D:\Anaconda3\envs\base-env\lib\site-packages\setuptools\__init__.py", line 162, in setup
        _install_setup_requires(attrs)
      File "D:\Anaconda3\envs\base-env\lib\site-packages\setuptools\__init__.py", line 157, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "D:\Anaconda3\envs\base-env\lib\site-packages\setuptools\dist.py", line 702, in fetch_build_eggs
        replace_conflicting=True,
      File "D:\Anaconda3\envs\base-env\lib\site-packages\pkg_resources\__init__.py", line 781, in resolve
        replace_conflicting=replace_conflicting
      File "D:\Anaconda3\envs\base-env\lib\site-packages\pkg_resources\__init__.py", line 1064, in best_match
        return self.obtain(req, installer)
      File "D:\Anaconda3\envs\base-env\lib\site-packages\pkg_resources\__init__.py", line 1076, in obtain
        return installer(requirement)
      File "D:\Anaconda3\envs\base-env\lib\site-packages\setuptools\dist.py", line 758, in fetch_build_egg
        return fetch_build_egg(self, req)
      File "D:\Anaconda3\envs\base-env\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
        raise DistutilsError(str(e)) from e
    distutils.errors.DistutilsError: Command '['D:\\Anaconda3\\envs\\base-env\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\ctzn\\AppData\\Local\\Temp\\tmpsba_8xe2', '--quiet', 'pandoc-min>=1.0.3']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

网页上搜了一下,什么方法都有,但是对我的问题好像不管用。

解决方法:

既然pip不行,那就换成conda install git,居然成功了。这个方法适合我,不一定适合所有人。

你可能感兴趣的:(报错,pip)