Windows系统Python 安装第三方模块时,提示pip版本有问题
如果按照提示输入python -m pip install --upgrade pip 还不行,
那么执行easy_install --upgrade pip
即可
参考:https://stackoverflow.com/questions/39908406/unable-to-locate-finder-for-pip-vendor-distlib-error-when-using-pip-instal
“Unable to locate finder for 'pip._vendor.distlib'” error when using “pip install virtualenv”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | Collecting virtualenv Downloading virtualenv - 15.0 . 3 - py2.py3 - none - any .whl ( 3.5MB ) 100 % |████████████████████████████████| 3.5MB 256kB / s Installing collected packages: virtualenv Exception: Traceback (most recent call last): File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\basecommand.py" , line 215 , in main status = self .run(options, args) File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py" , line 317 , in run prefix = options.prefix_path, File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py" , line 742 , in install * * kwargs File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py" , line 831 , in install self .move_wheel_files( self .source_dir, root = root, prefix = prefix) File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py" , line 1032 , in move_wheel_files isolated = self .isolated, File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\wheel.py" , line 493 , in move_wheel_files maker.make_multiple([ '%s = %s' % kv for kv in console.items()]) File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py" , line 383 , in make_multiple filenames.extend( self .make(specification, options)) File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py" , line 372 , in make self ._make_script(entry, filenames, options = options) File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py" , line 276 , in _make_script self ._write_script(scriptnames, shebang, script, filenames, ext) File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py" , line 212 , in _write_script launcher = self ._get_launcher( 't' ) File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\scripts.py" , line 351 , in _get_launcher result = finder(distlib_package).find(name).bytes File "c:\users\corey shaw\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\distlib\resources.py" , line 324 , in finder raise DistlibException( 'Unable to locate finder for %r' % package) pip._vendor.distlib.DistlibException: Unable to locate finder for 'pip._vendor.distlib' |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了