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

WIN10终端执行python --version提示未识别问题求助

Why python --version Fails on Windows 10 After Python Installation

Hey there! Let's break down the common reasons you're getting the error 'python' is not recognized as an internal or external command, operable program or batch file and what you can do about them:

  • Python wasn't added to your system PATH during installation
    This is the most frequent cause. When installing Python, there's a critical checkbox labeled "Add Python X.X to PATH" (where X.X is your version number) near the bottom of the installer window. If you skipped checking this, your Windows system doesn't know where to find the python executable.
    To fix this: You can either re-run the Python installer and make sure to tick that PATH checkbox, or manually add the Python installation directory (usually C:\Users\<YourUsername>\AppData\Local\Programs\Python\PythonXX) and its Scripts subfolder to your system's Environment Variables > System Variables > PATH. Don't forget to restart your terminal after making changes.

  • You need to use python3 instead of python
    Some newer Python 3 installations on Windows map the executable to python3.exe instead of python.exe. Try running python3 --version in your terminal—this might work if the standard python command doesn't.

  • Your terminal was opened before installing Python
    Terminal windows load environment variables when they first launch. If you had a terminal open before installing Python, it won't pick up the new PATH entries added by the installer. Simply close your current terminal window, open a new one, and try the python --version command again.

  • Corrupted or mislocated Python installation
    In rare cases, the installation might have failed silently, leaving missing or corrupted files, or Python might have been installed in an unexpected directory. Check if the Python installation folder exists (use the default path mentioned earlier) and contains python.exe. If something looks off, uninstall Python, download the official installer, and reinstall it carefully.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.12 04:26:03