我正在使用pip在我的虚拟环境中安装一些包,但它显示以下错误:
pip install Flask-Ask==0.9.8
输出为:
Collecting Flask-Ask==0.9.8
Using cached https://files.pythonhosted.org/packages/6a/f5/d4709ae94584a0b1541e9b52b2d25a8a1bdb6e2da9d6870f23fdd0523a30/Flask-Ask-0.9.8.tar.gz
ERROR: Command errored out with exit status 1:
command: /home/nisha/v2env/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wf2c65i_/Flask-Ask/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wf2c65i_/Flask-Ask/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-wf2c65i_/Flask-Ask/pip-egg-info
cwd: /tmp/pip-install-wf2c65i_/Flask-Ask/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-wf2c65i_/Flask-Ask/setup.py", line 8, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我认为这是一个过时的模块。因此pip必须使用早期版本。所以从我收集到的信息来看,任何超过版本10 pip的东西都不能找到flask-ask(the请求文本我想是文件)
尝试:
注: 完成此模块后,您必须再次更新pip。在
完成模块后:
^{pr2}$相关问题 更多 >
编程相关推荐