gpt4 book ai didi

python - pip : was OK for months now :ImportError: No module named 'pip._vendor.requests.adapters'

转载 作者:太空宇宙 更新时间:2023-11-04 09:53:59 24 4
gpt4 key购买 nike

到目前为止一切正常;使用 Win10、Anaconda 分发版,尝试运行 pip 会导致:

traceback (most recent call last):
File "C:\Users\Tim\Anaconda3\Scripts\pip-script.py",
line from pip import main
File "C:\Users\Tim\Anaconda3\lib\site-packages\pip\__init_ from pip.vcs import git, mercurial, subversion, bazaar
File "C:\Users\Tim\Anaconda3\lib\site-packages\pip\vcs\mer from pip.download import path_to_url
File "C:\Users\Tim\Anaconda3\lib\site-packages\pip\downloa from pip._vendor.requests.adapters import BaseAdapter,
H mportError: No module named 'pip._vendor.requests.adapters'

最佳答案

同样的问题

Traceback (most recent call last):
File "C:\Users\susen\Anaconda3\Scripts\pip-script.py", line 6, in <module>
from pip import main
File "C:\Users\susen\Anaconda3\lib\site-packages\pip\__init__.py", line 28, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "C:\Users\susen\Anaconda3\lib\site-packages\pip\vcs\mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "C:\Users\susen\Anaconda3\lib\site-packages\pip\download.py", line 41, in <module>
from pip._vendor.requests.adapters import BaseAdapter, HTTPAdapter
ModuleNotFoundError: No module named 'pip._vendor.requests.adapters'

自从我昨天升级了一些软件包后就发生了这种情况。然后我无法运行 pip。

我最终做了一个全新安装的 anaconda。那解决了问题。

关于python - pip : was OK for months now :ImportError: No module named 'pip._vendor.requests.adapters' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46656217/

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