简体   繁体   English

使用旧版本的Python安装软件包

[英]Installing packages with older version of Python

I have Python 3.7, which currently doesn't support Tensorflow. 我有Python 3.7,目前不支持Tensorflow。

So I installed Python 3.6.7, went to the command line and typed in py -m pip install tensorflow , and still got the same error: 所以我安装了Python 3.6.7,转到命令行并输入py -m pip install tensorflow ,仍然出现相同的错误:

Could not find a version that satisfies the requirement tensorflow (from versions: ). No matching distribution found for tensorflow

What can I do ensure that I'm trying to install Tensorflow using Python 3.6.7? 如何确保我尝试使用Python 3.6.7安装Tensorflow?

Browsing the documentation: https://docs.python.org/3/installing/index.html 浏览文档: https : //docs.python.org/3/installing/index.html

The solution is to invoke version 3.6 by specifying it as follows: 解决方案是通过指定以下版本来调用版本3.6:

py -3.6 -m pip install tensorflow

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM