简体   繁体   English

安装软件包失败:安装软件包龙卷风时发生错误

[英]Install packages failed: Error occurred when installing package tornado

When trying to install python packages on pycharm I got this error: 尝试在pycharm上安装python软件包时出现此错误:

Install packages failed: Error occurred when installing package tornado

I have no idea what is it for. 我不知道这是干什么的。 here is the details: 这是详细信息:

Install packages failed: Error occurred when installing package tornado. 

The following command was executed:

packaging_tool.py install --build-dir C:\Users\ehsan\AppData\Local\Temp\pycharm-packaging7844946454948740003.tmp tornado

The error output of the command:


Downloading/unpacking tornado
Cleaning up...
Exception:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\basecommand.py", line 134, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\commands\install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\req.py", line 1085, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\index.py", line 201, in find_requirement
    page = self._get_page(main_index_url, req)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\index.py", line 554, in _get_page
    return HTMLPage.get_page(link, req, cache=self.cache)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\index.py", line 671, in get_page
    resp = urlopen(url)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\download.py", line 176, in __call__
    response = self.get_opener(scheme=scheme).open(url)
  File "C:\Python27\lib\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 422, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\download.py", line 155, in https_open
    return self.do_open(self.specialized_conn_class, req)
  File "C:\Python27\lib\urllib2.py", line 1181, in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
  File "C:\Python27\lib\httplib.py", line 995, in request
    self._send_request(method, url, body, headers)
  File "C:\Python27\lib\httplib.py", line 1029, in _send_request
    self.endheaders(body)
  File "C:\Python27\lib\httplib.py", line 991, in endheaders
    self._send_output(message_body)
  File "C:\Python27\lib\httplib.py", line 844, in _send_output
    self.send(msg)
  File "C:\Python27\lib\httplib.py", line 806, in send
    self.connect()
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\download.py", line 139, in connect
    match_hostname(self.sock.getpeercert(), self.host)
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\backwardcompat\ssl_match_hostname.py", line 61, in match_hostname
    % (hostname, ', '.join(map(repr, dnsnames))))
CertificateError: hostname '127.0.0.1' doesn't match either of '*.c.ssl.fastly.net', 'c.ssl.fastly.net', '*.target.com', '*.vhx.tv', '*.snappytv.com', '*.atlassian.net', 'secure.lessthan3.com', '*.atlassian.com', 'a.sellpoint.net', 'cdn.upthere.com', '*.tissuu.com', '*.issuu.com', '*.kekofan.com', '*.python.org', '*.theverge.com', '*.sbnation.com', '*.polygon.com', '*.twobrightlights.com', '*.2brightlights.info', '*.vox.com', 'staging-cdn.upthere.com', '*.zeebox.com', '*.beamly.com', '*.aticpan.org', 'stream.svc.7digital.net', 'stream-test.svc.7digital.net', '*.articulate.com', 's.t.st', 'vid.thestreet.com', '*.planet-labs.com', '*.url2png.com', 'turn.com', 'www.turn.com', 'rivergathering.org', 'social.icfglobal2014-europe.org', '*.innogamescdn.com', '*.pathable.com', '*.staging.pathable.com', '*.kickstarter.com', 'sparkingchange.org', 'www.swedavia.se', 'www.swedavia.com', 'js-agent.newrelic.com', '*.fastly-streams.com', 'cdn.brandisty.com', 'fastly.hightailcdn.com', '*.fl.yelpcdn.com', '*.feedmagnet.com', 'api.contentbody.com', '*.acquia.com', '*.swarmapp.com', '*.pypa.io', 'pypa.io', 'static.qbranch.se', '*.krxd.net', '*.room.co', '*.metrological.com', 'room.co', 'cdn.evbuc.com', 'cdn.adagility.com', '*.bandpage.com', '*.ibmserviceengage.com', '*.quirky.com', '*.veez.co', '*.x.io', '*.otoycdn.net', '*.scribd.com', 'www.dwin1.com', 'api.imgur-ysports.com', 'i.imgur-ysports.com', '*.fxcm.co.jp', 'listora.com', '*.listora.com', 'blendle.nl', '*.blendle.nl', '*.modeanalytics.com', 'modeanalytics.com', 'krux.com', '*.krux.com', '*.udemy.com', '*.1stdibs.com', 'api.keep.com', 'www.piriform.com', '*.ustream.tv', 'www.zimbio.com', 'm.zimbio.com', 'www.stylebistro.com', 'm.stylebistro.com', 'm.lonny.com', 'www.lonny.com', 'assets.trabiancdn.com', '*.socialchorus.com', '*.heritagestatic.com', '*.theoutbound.com', 'img.rakuten.com', 'images.rakuten.com', 'img1.r10.io', 'ast1.r10.io', 'scribd.com'

Storing complete log in C:\Users\ehsan\pip\pip.log

This error happens for all python packages not just tornado. 所有Python软件包(不仅是龙卷风)都会发生此错误。 seems like that I have to do something with pip install or python setup tools. 似乎我必须使用pip安装或python安装工具来做一些事情。 I'm using pycharm 3.4 on windows. 我在Windows上使用pycharm 3.4。 Do you have any Idea how to deal with this? 您有任何想法如何处理吗?

Go to File->Settings->HTTP Proxy 转到文件->设置-> HTTP代理

  • Have "Manual proxy configuration" and HTTP checked. 检查“手动代理配置”和HTTP。
  • Set "Host name:" to the name of your proxy (Ex: You might get the name of your proxy from your browser settings.) 将“主机名:”设置为代理的名称(例如:您可能会从浏览器设置中获得代理的名称。)
  • Set the "Port number:" (Ex: 8080) 设置“端口号:”(例如:8080)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装软件包失败:安装软件包beautifulsoup4时发生错误? - Install packages failed: Error occurred when installing package beautifulsoup4? Pycharm 安装包失败:安装包:发生错误。 错误 - Pycharm Install packages failed: Installing packages: error occurred. error 安装 package 'Cartopy' 时出错 - Error occurred when installing package ‘Cartopy’ 错误&#39;引发位置解析错误<url>在 Canopy 中安装软件包时无法解析&#39; - Error'raise locationparseerror<url>.failed to parse'when installing packages in canopy pip 安装包出现错误“由于环境错误无法安装包”发生 - pip install pacakge with an error “Could not install packages due to an EnvironmentError” occurred 安装tradingwithpython软件包时Anaconda conda安装错误 - Anaconda conda install error when installing tradingwithpython package 安装 conda 包时出错:conda.core.link:_execute(696):安装包“conda-forge::qt-5.9.7-h506e8af_3”时出错 - Error installing conda packages: conda.core.link:_execute(696): An error occurred while installing package 'conda-forge::qt-5.9.7-h506e8af_3' Pipenv:尝试安装 web3 时出现“安装 cytoolz 时出错”(安装了 python3.8-dev) - Pipenv: “An error occurred while installing cytoolz” when trying to install web3 (python3.8-dev is installed) conda install packages 错误:收集 package 元数据(current_repodata.json):失败 - conda install packages error: Collecting package metadata (current_repodata.json): failed 安装 Python 包将下载、安装和删除其他包 - Installing Python package will download, install, and remove other packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM