使用CMD下载Pyinstaller

在CMD中使用pip安装Pyinstaller时遇到了多个错误,包括版本过旧和读取超时问题。通过尝试升级pip,使用带有--default-timeout参数的安装命令以及指定镜像源,最终解决了问题。以管理员权限运行CMD并输入特定命令"pip --default-timeout=100 install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com",实现了快速且顺利的Pyinstaller下载。
摘要由CSDN通过智能技术生成

CMD下载Pyinstaller遇到的错误和我的解决方法

一开始也是在CMD使用"pip installer pyinstaller"
但是会遇到很多报错
1、“WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the ‘d:\python\python.exe -m pip install --upgrade pip’ command.”
然后根据上面提示输入了“d:\python\python.exe -m pip install --upgrade pip’ command”也是不行

2、然后又看了一些文章换着输入"python -m pip install -U pip"
会报这样的错“raise ReadTimeoutError(self._pool, None, “Read timed out.”)
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.”

3、然后又试了"python -m pip install -U --force-reinstall pip"
又会重复报错"WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the ‘D:\Python\p

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值