Virtutalenv命令“ python setup.py egg_info”失败,错误代码为1

时间:2018-07-10 21:14:00

标签: python pip setuptools

我一直在尝试遵循本指南:https://www.youtube.com/watch?v=x9lKLGTfQFU 我在虚拟环境中运行pip install -r requirements.txt行时遇到问题,这是发生的情况:

(venv) C:\Users\George\Desktop\Kodi> pip install -r requirements.txt
Collecting gunicorn (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl
Collecting pytz (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl
Collecting flask-ask>=0.9.8 (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/6a/f5/d4709ae94584a0b1541e9b52b2d25a8a1bdb6e2da9d6870f23fdd0523a30/Flask-Ask-0.9.8.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\george\appdata\local\temp\pip-install-b3jnkl\flask-ask\setup.py", line 8, in <module>
        from pip.req import parse_requirements
    ImportError: No module named req

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\george\appdata\local\temp\pip-install-b3jnkl\flask-ask\

我已经在线查看过,升级了setuptools和ez install,但无济于事

0 个答案:

没有答案