当前位置: 代码迷 >> python >> 在VS2017中pip安装龙卷风失败
  详细解决方案

在VS2017中pip安装龙卷风失败

热度:106   发布时间:2023-07-14 09:49:16.0

尝试使用此命令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 (在此处称为 : )

节目

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

我也尝试了这里的pip install --user tornado

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

我猜它与此有关:( (from versions: ) :)处于错误状态,但我对pip / python相当陌生


pip install -vvv …要求尝试了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' -----

我重新RTM,并注意到

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

因此,我下载了稳定的zip,解压缩并运行: "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\python.exe" setup.py install ,它的工作"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\python.exe" setup.py install

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

  相关解决方案