You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用PIP安装TENSORFLOW时出错:pip3未被系统识别

Fixing "pip3 is not recognized" Error on Windows 7 with Python 3.6.5

Hey there, let's get that pip3 issue sorted out so you can install TensorFlow. This is a super common problem when Python's executable path isn't added to your system's environment variables. Here are the steps to fix it:

Quick Temporary Fix (Install TensorFlow Right Away)

If you just want to get TensorFlow installed first without messing with environment variables, you can run pip3 using its full file path.

  1. First, find your Python 3.6.5 installation folder. By default, it's usually C:\Python36 (since Python 3.6.5 uses this default path on Windows).
  2. Navigate to the Scripts subfolder inside that directory—this is where pip3.exe lives.
  3. In Command Prompt, run the full command:
    C:\Python36\Scripts\pip3 install --upgrade tensorflow
    

This should work immediately, but we'll fix the root cause next so you don't have to type the full path every time.

Permanent Fix: Add Python Scripts to System Environment Variables

This will make pip3 (and other Python tools) accessible from any Command Prompt window:

  • Right-click on Computer (or This PC) and select Properties.
  • Click Advanced system settings on the left sidebar.
  • In the pop-up window, go to the Advanced tab and click Environment Variables.
  • Under System variables, scroll down and find the Path variable, then click Edit.
  • Add the full path to your Python Scripts folder at the end of the list. If your Python is installed in the default location, this is:
    ;C:\Python36\Scripts
    
    Note: Make sure to add a semicolon (;) before the path if it's not already present at the end of the existing Path value.
  • Click OK on all open windows to save the changes.
  • Close any open Command Prompt windows and open a new one—now running pip3 --version should work, and you can use the original command pip3 install --upgrade tensorflow without issues.

Bonus Check: Try Using pip Instead of pip3

On some Windows Python installations, the pip command is already linked to Python 3's pip (instead of Python 2, if you don't have it installed). You can test this by running:

pip install --upgrade tensorflow

If that works, you can stick with pip for future commands instead of pip3.

If you ever reinstall Python, make sure to check the box that says Add Python to PATH during the installation process—this will automatically set up the environment variables for you, so you won't run into this issue again.

内容的提问来源于stack exchange,提问作者Clint4Life

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 09:03:37