简体   繁体   English

无法使用pip安装Tensorflow

[英]Unable to install Tensorflow using pip

I am trying to install Tensorflow but it gives the following error. 我正在尝试安装Tensorflow,但出现以下错误。 I have python 3.5.4 on my system and using windows 10 as my operating system 我的系统上有python 3.5.4并使用Windows 10作为操作系统 在此处输入图片说明

What python do you have and is Python in your path? 您拥有什么python,并且您的路径中是否有Python?

try 尝试

pip3 install --upgrade tensorflow

or also 或者也

python -m pip3 install --upgrade tensorflow

Worked for me on a PC with Python 3. 在装有Python 3的PC上为我工作。

Actually Python 3.5.4 is based on 32 bit architecture. 实际上,Python 3.5.4是基于32位体系结构的。 But Tensorflow needs a 64 bit based architecture. 但是Tensorflow需要基于64位的架构。 So replacing the version 3.5.4 with 3.5.3 will work as the version 3.5.3 is a 64-bit based architecture. 因此,将3.5.4替换为3.5.3即可,因为3.5.3是基于64位的体系结构。 And the Tensorflow will install with the normal command in pip. Tensorflow将使用pip中的常规命令进行安装。

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

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