- 问题:在用pip安装的时候一直会显示一些问题比如说2.7停止了pip的使用
Collecting beautifulsoup Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc35868d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/beautifulsoup/ Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc3586e90>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/beautifulsoup/ Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc3586890>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/beautifulsoup/ Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc35861d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/beautifulsoup/ Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7bc3586c50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/beautifulsoup/ Could not find a version that satisfies the requirement beautifulsoup (from versions: ) No matching distribution found for beautifulsoup
- 解决办法:
- 在电脑上这个网站
https://pypi.tuna.tsinghua.edu.cn/simple/
中找到所需要下载的包以及版本,解压 - 用命令
pip show numpy
查询一个以及安装的第三方包安装的位置,这个时候就能找到第三方包安装的位置了 - 将解压后的包通过
xftp
软件将解压后的文件夹移动到第三方包安装的位置,接下来将目录切换到解压后的文件夹的目录下,执行命令python setup.py install
,这个时候包已经安装成功了。