栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

pip 命令报错 Fatal error in launcher: Unable to create process using ... ???? ???????

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

pip 命令报错 Fatal error in launcher: Unable to create process using ... ???? ???????

文章目录
  • 1)问题1
    • 解决方案
  • 2)问题2
    • 解决方案

1)问题1

当我们使用 pip install auto-py-to-exe命令时,得到报错信息为 Fatal error in launcher: Unable to create process using '"d:pythonpython.exe" "D:pycharmpythonScriptspip3.exe" install auto-py-to-exe': ???? ???????

解决方案

1)切换到 pip 的安装目录,如D:pycharmpythonScripts
2)在此处打开 Powershell 窗口
3)执行python pip.exe install SomePackage进行安装
4)安装成功后执行 pip 仍报错,提示 pip 要升级
5)执行 python -m pip install --upgrade pip
6)升级成功后,再次执行 pip,就解决了

参考链接:解决Windows下python和pip命令无法使用的问题


2)问题2

当我们使用 pip install auto-py-to-exe 来安装工具时,会出现如下的错误:

ERROR: Command errored out with exit status 1:
   command: 'c:usersea_e90434appdatalocalprogramspythonpython37-32python.exe' 'c:usersea_e90434appdatalocalprogramspythonpython37-32libsite-packagespip' install --ignore-installed --no-user --prefix 'C:Us
ersEA_E90~1AppDataLocalTemppip-build-env-i1b74fjxoverlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --trusted-host pypi.org --trusted-host files.pythonhosted.org -- '
setuptools>=40.8.0' wheel
       cwd: None
  Complete output (8 lines):
  Collecting setuptools>=40.8.0
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Fail
ed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Fail
ed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Fail
ed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Fail
ed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Fail
ed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/setuptools/
    ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
  ERROR: No matching distribution found for setuptools>=40.8.0
解决方案

关闭梯子,然后重新开始 pip install …

参考链接:Python 3.7 安装 auto-py-to-exe 模块在 Windows 上返回错误

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/998002.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号