安装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的文件了(支持最新协议)