简体   繁体   English

使用PIP安装TENSORFLOW时出错

[英]Error Installing TENSORFLOW using PIP

When I try to install Tensorflow by typing "pip3 install --upgrade tensorflow" into the C: command prompt line, I get the error: "pip3 is not recognized as an internal or external command, operable program or batch file" (See attached picture) 当我尝试通过在C:命令提示符行中键入“ pip3 install --upgrade tensorflow”来安装Tensorflow时,出现错误:“ pip3不被识别为内部或外部命令,可操作程序或批处理文件”(请参阅​​附件)图片)

I have Python 3.6.5 installed on my Windows 7 laptop, so it includes "pip3" needed to install Tensorflow. 我在Windows 7笔记本电脑上安装了Python 3.6.5,因此它包含安装Tensorflow所需的“ pip3”。

错误信息

Since your computer does have Python 3.6 and it comes with pip , you could try running 由于您的计算机确实具有Python 3.6并且它带有pip ,因此您可以尝试运行

python -mpip install tensorflow

If Python isn't found either, run 如果也找不到Python,请执行

c:\python36\bin\python -mpip install tensorflow

The problem here is that "pip3" is not recognized as a command. 这里的问题是“ pip3”未被识别为命令。 In order for pip to be run from the command line, it needs to be added to your system's PATH. 为了使pip从命令行运行,需要将其添加到系统的PATH中。

The accepted answer here should help: https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command 此处接受的答案应该会有所帮助: https : //stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command

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

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