ImportError:没有名为build\u lib的模块

2024-09-29 21:47:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图以这种方式运行pip install命令:pip install pyverdict --upgrade,但出现以下错误:ImportError: No module named build_lib。我如何解决这个问题? 更详细的错误:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pyverdict
  Using cached https://files.pythonhosted.org/packages/81/be/c7f5803f599fa74b26ac9b2be385f19f14ce573540371f1f2c1c59a51a80/pyverdict-0.1.3.1.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-hBPHyv/pyverdict/setup.py", line 21, in <module>
        from build_lib import build_and_copy
    ImportError: No module named build_lib
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-hBPHyv/pyverdict/


Tags: installpipnoinpybuildlib错误

热门问题