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

Windows 10下Python路径设置后仍无法识别的问题求助

Fixing "'python' is not recognized" Error on Windows 10 (Python 3.6.5_2)

Hey there, let's troubleshoot this issue step by step—since you've already tried setting the PATH, we'll focus on common overlooked details that often cause this problem with Python 3.6 on Windows 10.

Step 1: Double-Check Your Python Installation Path

First, make sure you're adding the correct directory to your PATH:

  • Locate your Python 3.6.5_2 installation folder. By default, it might be C:\Python36 (if installed for all users) or C:\Users\<YourUsername>\AppData\Local\Programs\Python\Python36 (if installed only for your account).
  • Verify the folder contains python.exe—if it doesn't, you've got the wrong path entirely. Don't forget to also include the Scripts subfolder (e.g., C:\Python36\Scripts) in your PATH, as it holds tools like pip.

Step 2: Verify Environment Variable Setup

It's easy to miss small details here:

  • Right-click This PC → Properties → Advanced System Settings → Environment Variables.
  • Under System Variables (not User Variables—critical if you use Command Prompt as admin), find the Path variable and click Edit.
  • Ensure both your Python root folder and Scripts folder are listed. Double-check for typos: no extra spaces, use backslashes (\) instead of forward slashes (/), and make sure the paths are fully spelled out.

Step 3: Restart Command Prompt (Non-Negotiable!)

This is the most common mistake—environment variable changes don't take effect in already open cmd windows. Close every single cmd window you have open, then launch a new one.

  • Test if it works by typing python --version or py --version (the py launcher is often auto-added during installation and can bypass PATH issues temporarily).
  • You can also confirm the PATH is loaded correctly by running:
    echo %PATH%
    
    Look for your Python directories in the output.

Step 4: Re-Run the Installer to Fix PATH Automatically

If manual PATH setup isn't working, let the installer handle it:

  • Find your original python-3.6.5_2 installer and run it.
  • Select the Modify option, then check the box labeled Add Python to environment variables.
  • Complete the modification process, restart your cmd window, and test again.

Step 5: Check for Conflicting Programs

Rarely, other software might have a python.exe in another directory that's listed before your Python path. To check:

  • In a new cmd window, run:
    where python
    
    If the output shows a path that's not your Python 3.6 installation, you'll need to reorder your PATH variables—move your Python directories to the top of the list to prioritize them.

Give these steps a try—most of the time, the issue boils down to a missed folder in PATH, a stale cmd window, or a tiny typo. Let me know if any of these resolve your problem!

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.29 08:12:44