win7安装python及解决pip错误

安装python没少好说的,win7建议python3.8.10,记得勾选添加系统环境变量。

 并勾选pip

python -m pip config set global.index-url http://pypi.douban.com/simple/

如果提示没pip,就在Python38\Scripts

也有可能在Python38\DLLs\Scripts执行以下命令(按住shift右键,在当前位置打开cmd

*\Python38\Scripts>pip config set global.index-url http://pypi.douban.com/simple/

检查ie浏览器的设置,钩全部去掉

 不然会有如下错误

D:\Programs\Python38\Scripts>pip install wget --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewCo
nnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x000000
00046C85E0>: Failed to establish a new connection: [WinError 10061] 由于目标计算
机积极拒绝,无法连接。'))': http://pypi.douban.com/simple/wget/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewCo
nnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x000000
00046C81C0>: Failed to establish a new connection: [WinError 10061] 由于目标计算
机积极拒绝,无法连接。'))': http://pypi.douban.com/simple/wget/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewCo
nnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x000000
00046C8E50>: Failed to establish a new connection: [WinError 10061] 由于目标计算
机积极拒绝,无法连接。'))': http://pypi.douban.com/simple/wget/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewCo
nnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x000000
00046DD250>: Failed to establish a new connection: [WinError 10061] 由于目标计算
机积极拒绝,无法连接。'))': http://pypi.douban.com/simple/wget/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status
=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewCo
nnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x000000
00046DD4F0>: Failed to establish a new connection: [WinError 10061] 由于目标计算
机积极拒绝,无法连接。'))': http://pypi.douban.com/simple/wget/
ERROR: Could not find a version that satisfies the requirement wget (from versio
ns: none)
ERROR: No matching distribution found for wget

 安装wget

pip install wget --trusted-host pypi.douban.com

手动安装

下载解压后,得到setup.py、wget.py等文件,在该目录运行

python setup.py install

2023年12月2日更新

failed to create process.

1.python的pip不能用
基本的添加环境变量就不说了
Python*\DLLs\Scripts下
pip-script.py
pip3-script.py
第一行都改成包含python完整路径
#!*:\*\Python38\python.exe
 

ERROR: Could not find a version that satisfies the requirement requests (from versions: none)

2.request库安装

python -m pip install --upgrade pip

pip install requests
 
3.pip安装库
pip install --trusted-host pypi.douban.com pycryptodome
 
4.wget 报错 OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
升级wget到最新
windows版本的下载地址
https://eternallybored.org/misc/wget/

用everything搜索,wget.exe替换到相应位置,不确定是哪就全部替换

替换前wget不能下载https的文件

 替换后,可以下载https的文件了(支持最新协议)


 
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值