在VS2017中pip安装龙卷风失败

时间:2018-09-22 18:05:29

标签: python visual-studio pip tornado

尝试使用以下命令pip install tornado在适用于Python 3.6 64位的Win10 VS2017上安装Tornado,并出现以下错误:

----- Installing 'pip install tornado' ----- Requirement already up-to-date: pip in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (18.0) Collecting install Could not find a version that satisfies the requirement install (from versions: ) No matching distribution found for install ----- Failed to install 'pip install tornado' -----

我也尝试下载Git zip并使用此命令pip install -Iv https://files.pythonhosted.org/packages/e6/78/6e7b5af12c12bdf38ca9bfe863fcaf53dc10430a312d0324e76c1e5ca426/tornado-5.1.1.tar.gz (如此处引用:Installing specific package versions with pip

http://www.tornadoweb.org/en/stable/显示

  

Tornado 5.x在Python 2.7和3.4+上运行

我也尝试了pip install --user tornado,如此处引用的:Tornado Install Issue

所有选项最终都出现相同的最终错误:安装失败。

我猜测它与此有关:(from versions: ),但我对pip / python还是陌生的


按照hoefling的要求尝试pip install -vvv …(输出中还有更多内容

No matching distribution found for install Exception information: Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\basecommand.py", line 141, in main status = self.run(options, args) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\commands\install.py", line 299, in run resolver.resolve(requirement_set) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\resolve.py", line 102, in resolve self._resolve_one(requirement_set, req) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\resolve.py", line 256, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\resolve.py", line 209, in _get_abstract_dist_for self.require_hashes File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\operations\prepare.py", line 218, in prepare_linked_requirement req.populate_link(finder, upgrade_allowed, require_hashes) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\req\req_install.py", line 308, in populate_link self.link = finder.find_requirement(self, upgrade) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\pip\_internal\index.py", line 543, in find_requirement 'No matching distribution found for %s' % req pip._internal.exceptions.DistributionNotFound: No matching distribution found for install ----- Failed to install 'pip install -vvv https://files.pythonhosted.org/packages/ab/0e/8ec7ed219cb35fffe2f2cddbfa02b47ba5d23dd9026a41b3f2bdd63cdec3/tornado-5.1.1-cp36-cp36m-win_amd64.whl' -----

1 个答案:

答案 0 :(得分:0)

我重新进行RTM,并注意到

  

除了pip或setup.py install将自动安装的要求之外,以下可选软件包可能也很有用。...

因此,我下载了稳定的zip,提取并运行: "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe" setup.py install,它就像一种魅力。

我对pip或python的方法还不很了解,因此不知道为什么这种方法有效,而其他方法却没有。