初出茅庐多多指教 2016-07-12 12:27 采纳率: 100%
浏览 7039
已结题

python使用pip安装beautifulsoup4总是抛异常安装不了

python使用pip安装beautifulsoup4总是抛异常安装不了---

求解答

D:\Python27\Scripts>pip install beautifulsoup4
Collecting beautifulsoup4
D:\Python27\lib\site-packages\pip_vendor\requests\packages\urllib3\util\ssl_.py:318: SNIMissi
TPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not avail
tform. This may cause the server to present an incorrect TLS certificate, which can cause vali
You can upgrade to a newer version of Python to solve this. For more information, see https:/
docs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
D:\Python27\lib\site-packages\pip_vendor\requests\packages\urllib3\util\ssl_.py:122: Insecure
A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropr
ause certain SSL connections to fail. You can upgrade to a newer version of Python to solve th
ormation, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading beautifulsoup4-4.4.1-py2-none-any.whl (81kB)
Exception:
Traceback (most recent call last):
File "D:\Python27\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "D:\Python27\lib\site-packages\pip\commands\install.py", line 299, in run
requirement_set.prepare_files(finder)
File "D:\Python27\lib\site-packages\pip\req\req_set.py", line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "D:\Python27\lib\site-packages\pip\req\req_set.py", line 587, in prepare_file
session=self.session, hashes=hashes)
File "D:\Python27\lib\site-packages\pip\download.py", line 810, in unpack_url
hashes=hashes
File "D:\Python27\lib\site-packages\pip\download.py", line 649, in unpack_http_url
hashes)
File "D:\Python27\lib\site-packages\pip\download.py", line 871, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "D:\Python27\lib\site-packages\pip\download.py", line 595, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "D:\Python27\lib\site-packages\pip\utils\hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "D:\Python27\lib\site-packages\pip\download.py", line 563, in written_chunks
for chunk in chunks:
File "D:\Python27\lib\site-packages\pip\utils\ui.py", line 139, in iter
for x in it:
File "D:\Python27\lib\site-packages\pip\download.py", line 552, in resp_read
decode_content=False):
File "D:\Python27\lib\site-packages\pip_vendor\requests\packages\urllib3\response.py", line
data = self.read(amt=amt, decode_content=decode_content)
File "D:\Python27\lib\site-packages\pip_vendor\requests\packages\urllib3\response.py", line
flush_decoder = True
File "D:\Python27\lib\contextlib.py", line 35, in __exit
_
self.gen.throw(type, value, traceback)
File "D:\Python27\lib\site-packages\pip_vendor\requests\packages\urllib3\response.py", line
catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

  • 写回答

4条回答 默认 最新

  • 初出茅庐多多指教 2016-07-12 12:29
    关注

    就是这个异常问题

    图片说明

    评论

报告相同问题?

悬赏问题

  • ¥50 NT4.0系统 STOP:0X0000007B
  • ¥15 想问一下stata17中这段代码哪里有问题呀
  • ¥15 flink cdc无法实时同步mysql数据
  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。