gpt4 book ai didi

python - pip install 抛出值错误

转载 作者:行者123 更新时间:2023-11-28 22:40:37 25 4
gpt4 key购买 nike

我在 Windows 8.1 64 位操作系统上运行 Python(x,y) 2.7.10.0。我以前使用 pip 来安装一些包,但现在当我尝试

pip install nltk
pip install pycallgraph
pip search nltk
pip install selenium

出现以下错误

    C:\Python27\lib\site-packages\xy>pip search nltk
Traceback (most recent call last):
File "C:\Python27\Scripts\pip-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "build\bdist.win32\egg\pkg_resources.py", line 2880, in <module>
File "build\bdist.win32\egg\pkg_resources.py", line 432, in _build_master
File "build\bdist.win32\egg\pkg_resources.py", line 741, in require
File "build\bdist.win32\egg\pkg_resources.py", line 586, in resolve
File "build\bdist.win32\egg\pkg_resources.py", line 2714, in parse_requirements
File "build\bdist.win32\egg\pkg_resources.py", line 2690, in scan_list
ValueError: ("Expected ',' or end-of-list in", 'pip==7.0.3+xy.11', 'at', '+xy.11')

最佳答案

我在windows上也有这个问题。无论我尝试用 pip 做什么,我都会收到此错误。解决方案是:

python -m pip install -U pip setuptools

我在安装 pip 说明页面上找到它:https://packaging.python.org/installing/#install-pip-setuptools-and-wheel

关于python - pip install 抛出值错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33354878/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com