Уведомления
- Начало
- » Python для новичков
- » Не становится на Вин 10 и не запускается на Вин 8.1
#1 Янв. 3, 2024 20:50:59
Не становится на Вин 10 и не запускается на Вин 8.1
Приветствую.
Не становится python-3.2.3.amd64 на Windows 10 LTSC x64 1809
На Win 8.1 update 3 стала.
запуске полезла в Сеть (не пустил) далее вылетела с ошибкой.
Отредактировано Logran (Янв. 3, 2024 21:36:55)
Прикреплённый файлы:
Err.jpg (81,0 KБ)
Офлайн
- Пожаловаться
#2 Янв. 4, 2024 10:11:24
Не становится на Вин 10 и не запускается на Вин 8.1
А если поставить галочку — ТОлько для меня (НЕ для всех пользователей)
Ну и проверьте что бы все апдейт стояли
Влодение рускай арфаграфией — это как владение кунг-фу: настаящие мастира не преминяют ево бес ниабхадимости
Отредактировано ZerG (Янв. 4, 2024 10:12:15)
Офлайн
- Пожаловаться
#3 Янв. 4, 2024 10:49:44
Не становится на Вин 10 и не запускается на Вин 8.1
ZerG
А если поставить галочку — ТОлько для меня (НЕ для всех пользователей)
Ну и проверьте что бы все апдейт стояли
Python (command line) в 8.1 запускается без проблем. А IDLE (Python GUI) — нет.
Установка для одного пользователя не помогает.
Апдейты не ставлю: после них хуже работает вся ОС.
Ставить постарше не хочу: у меня учебник для 3.0 а с версии 3.3.0 и выше утрачена обратная совместимость.
Отредактировано Logran (Янв. 4, 2024 10:50:53)
Офлайн
- Пожаловаться
#4 Янв. 4, 2024 11:21:36
Не становится на Вин 10 и не запускается на Вин 8.1
1. Не смотря на то что у вас учебник для версии 3.0 — использовать 3.12 релиз никто не мешает. Различие будет лишь в том что в учебнике не будет новых методов. В остальном же использовать релиз ниже 3.4 -моветон. Например те же словари в старых версиях не статичны что добавляет головняка. Так что смело ставьте свежий релиз и учите по учебнику для 3.0. Кроме того в старых релизах вы рискуете поиметь проблемы с внешними библиотеками.
2. Что запускается на 8.1 — никому не интересно — так как проблема у вас не с ним
3. ЗАБУДЬТЕ про богомерзкий IDLE и никогда им не пользуйтесь — это самое дерьмовое что есть в питоне. Его как будт-то создавали именно для того что бы отвести взгляд от других проблем языка. Используйте Pycharm Community(Полностью бесплатный) или на хуйдой конец VS CODE
4. Задумайтесь о том что бы поставить второй ОС на вашем ПК линукс. Можно даже выбрать дистрибутив который устанавливается и грузится с флешки. Вы даже представить не можете сколько еще вам нужно будет съесть кирпичей решая вопросы не питона а самой ОС. (откройте гугл и вбейте в него python windows problem и утоните в количестве страниц)
Апдейты не ставлю: после них хуже работает вся ОС.
А если их не ставить то хуже работает все остальное. Так например при попытке установить питон вам говорит что виновая либа старая и не проходит сертификацию из за чего и весь сыр бор
Влодение рускай арфаграфией — это как владение кунг-фу: настаящие мастира не преминяют ево бес ниабхадимости
Отредактировано ZerG (Янв. 4, 2024 11:23:39)
Офлайн
- Пожаловаться
#5 Янв. 4, 2024 12:23:33
Не становится на Вин 10 и не запускается на Вин 8.1
ZerG
ЗАБУДЬТЕ про богомерзкий IDLE и никогда им не пользуйтесь
Я подозревал.
ZerG
А если их не ставить то хуже работает все остальное.
У меня мало того, что не стоят апдейты, отключено все, что можно. Поэтому если сочту нужным сеьезное использование Питона, поставлю Линукс на ноут. Работал я в нем, та еще головная боль.
Ибо Винду я не буду трогать при ЛЮБЫХ раскладах. Начинал я сей труд с 8.1 потом вынудили иногда работать на 10-ке. На Киберфоруме я создал тему по этому поводу.
Попробую PyCharm 2020.1.5
Офлайн
- Пожаловаться
#6 Янв. 4, 2024 15:20:41
Не становится на Вин 10 и не запускается на Вин 8.1
У меня мало того, что не стоят апдейты, отключено все, что можно. Поэтому если сочту нужным сеьезное использование Питона, поставлю Линукс на ноут. Работал я в нем, та еще головная боль.
Это ваше личное — у нормального человека голова болит от виндовс
Ибо Винду я не буду трогать при ЛЮБЫХ раскладах. Начинал я сей труд с 8.1 потом вынудили иногда работать на 10-ке.
Ну — не трогайте. Дело же ваше
На Киберфоруме я создал тему по этому поводу.
Вы не обижайтесь но нам тут совершенно монопенисоидально что там на каком-то всратом форуме пишут лупни касаемо апдейтов винды.
Попробую PyCharm 2020.1.5
У вас какаято нездоровая любовь пользоваться устаревшим ПО
Почему не пишарм второй ветки?
https://www.jetbrains.com/ru-ru/pycharm/download/other.html
Актуальный релиз 2023.3.2
Влодение рускай арфаграфией — это как владение кунг-фу: настаящие мастира не преминяют ево бес ниабхадимости
Офлайн
- Пожаловаться
#7 Янв. 4, 2024 17:31:50
Не становится на Вин 10 и не запускается на Вин 8.1
ZerG
У вас какая-то нездоровая любовь пользоваться устаревшим ПО
Моя цель — не тестирование на собственной чайниковой шкуре (это когда не знаешь, ты ошибся, или это глюк) новейшей версии PyCharm, а изучение Питона. Предпочитаю, чтобы глюки за меня вылавливали любители последних версий. А я в Гугле об этом прочитаю.
PyCharm почему-то захотел установить обхаяный Вами IDLE версии 3.7.7. Без него будет работать, или надо доставить?
Доставил. Ожидаемо, исходник для версии 3.0 не подошел.
C:\Users\Designer\PycharmProjects\pythonProject\venv\Scripts\python.exe CUsers/Designer/PycharmProjects/pythonProject/main.py
File “CUsers/Designer/PycharmProjects/pythonProject/main.py”, line 10
print(‘hello world’)
^
SyntaxError: invalid character in identifier
Process finished with exit code 1
Видимо, запускает в режиме командной строки. Осталось подобрать версию PyCharm для IDLE версии 3.2.3. Или учебник для версии 3.7.7 если для старых версий могут быть проблемы с внешними библиотеками.
Отредактировано Logran (Янв. 4, 2024 17:57:41)
Офлайн
- Пожаловаться
#8 Янв. 4, 2024 18:01:26
Не становится на Вин 10 и не запускается на Вин 8.1
IDLE Не имеет отношения к пишарму от слова совсем
Вы можете его вобще не устанавливать
У пишарма стабильные сборки — искать баги там не нужно
Ваша ошбка в том что вы копипастите недумая — заменить кавычки на обычные
И все будет работать
Но все ваши беды из за того что вы учите питон по какомуто гейскому курсу
Попробуйте как все нормальные люди книгу Лутца
Влодение рускай арфаграфией — это как владение кунг-фу: настаящие мастира не преминяют ево бес ниабхадимости
Отредактировано ZerG (Янв. 4, 2024 18:01:47)
Офлайн
- Пожаловаться
#9 Янв. 4, 2024 19:06:38
Не становится на Вин 10 и не запускается на Вин 8.1
ZerG
Ваша ошбка в том что вы копипастите недумая
Это не думание, а знание. Откуда мне знать что в книге Лутца 4-е издание (что по-вашему он — гей, мне пофиг) такие ошибки? Нет, я знаю, что в исходниках традиционно ошибки. Я до сего дня исходный код Питона в глаза не видел. Те языки программирования, что я учил, далеки от Питона. Другое измерение, чтоб понятней.
Сейчас тяну через соломину 5-е издание.
Заменил кавычки, отработало нормально.
Но! Без подключенного interpreter не работает.
Error: Please select a valid Python interpreter
В пятом издании такие же кавычки. Наверное, по гнилой традиции, поменяли только обложку 4-го издания.
Где бы нормальный учебник скачать?
Отредактировано Logran (Янв. 4, 2024 19:34:06)
Офлайн
- Пожаловаться
#10 Янв. 4, 2024 19:39:57
Не становится на Вин 10 и не запускается на Вин 8.1
IDLE это не интепретатор!!!
Pycharm это всего лишь навороченный редактор кода
Для того что бы выполнять написанный вами код нужен установленный в систему Python
При установке необходимо поставить галочку Add python to system path
После того как установили пишарм и создали в нем проект необходимо указать какой именно python использовать для этого проекта так как их может быть в системе много вервсий + venv
Вы часом раньше Делфи или Паскаль не изучали? А то видно что вам что-то прямо сильно мешает двигаться?
Как я и сказал выше — путь винды наполнен болью
Влодение рускай арфаграфией — это как владение кунг-фу: настаящие мастира не преминяют ево бес ниабхадимости
Офлайн
- Пожаловаться
- Начало
- » Python для новичков
- » Не становится на Вин 10 и не запускается на Вин 8.1

When trying to run Python commands in Windows, you might encounter this error message:
Python was not found;
run without arguments to install from the Microsoft Store,
or disable this shortcut from Settings > Manage App Execution Aliases.
This error might occur because of two possible scenarios:
- You have Python installed without adding Python.exe to PATH
- You don’t have Python installed
This tutorial will show you how to fix this error in each scenario.
1. You have Python installed without adding Python.exe to PATH
If you already have Python installed, then this error means Windows can’t find the path to that Python installation.
To verify you have Python installed, run the following command:
If you see a similar output as follows:
C:\Users\nsebhastian>py --version
Python 3.10.8
Then that means Python is indeed installed, but the python
alias to run it is not added. By default, Windows uses the py
alias to run the Python interpreter.
One way to enable the python
command is to add the python.exe
executable file to your PATH environment variable.
First, find the path to python.exe
file using this command:
py -c "import sys; print(sys.executable)"
You should see a similar output as follows:
C:\Users\nsebhastian>py -c "import sys; print(sys.executable)"
C:\Users\nsebhastian\AppData\Local\Programs\Python\Python310\python.exe
Next, you need to add the full path to the folder where python.exe
is located in your PATH variable.
From the command prompt, run the setx
command as shown below:
setx path "%PATH%;<your path here>"
Replace <your path here>
with the path you get previously:
setx path "%PATH%;C:\Users\nsebhastian\AppData\Local\Programs\Python\Python310"
Now close your command prompt and open it again. This time, you can run the python
command:
Notice that the error is now fixed.
2. You don’t have Python installed
If you don’t have Python installed, then you need to install Python either from the Microsoft Store or the official Python website at https://python.org.
If you get the installer from python.org, make sure that you check the option ‘Add python.exe to PATH’ when running the installer:
Without checking the option, you can only run Python using the py
command.
Continue the rest of the installation process, and you should be able to run the python
command from the command prompt once the installation is finished.
Conclusion
To resolve the error “Python was not found; run without arguments to install from the Microsoft Store”, you need to make sure that you have Python installed on your machine and that python.exe
was added to the PATH variable.
If you have Python installed but didn’t add the path to the executable file, then you can only run Python using the py
alias.
I hope this tutorial is helpful. Happy coding! 👍
Have you encountered the frustrating issue of CMD not recognizing Python on your computer?
You’re not alone.
Various reasons can cause this common issue, but fortunately, we have troubleshooting tips and solutions to help you resolve it.
Key Takeaways
- CMD not recognizing Python is a common issue.
- Incorrect installation, missing environment variables, or other issues can cause the problem.
- Verifying your Python installation and updating environment variables are crucial troubleshooting steps.
- If the issue persists, alternative solutions include reinstalling Python or seeking assistance from the Python community.
Advertising links are marked with *. We receive a small commission on sales, nothing changes for you.
Understanding the Problem
Before diving into the troubleshooting tips, let’s take a moment to understand the issue.
When CMD (Command Prompt) does not recognize Python, it means that the system cannot locate the Python executable or the necessary environment variables are not properly configured. This can happen for various reasons and can be frustrating when you’re trying to execute Python commands through CMD.
One of the most common error messages you may encounter when running Python scripts through CMD is “Python is not recognized as an internal or external command, operable program or batch file.”
This error indicates that CMD cannot find the Python executable program in the system.
Tip: If you are using Windows 10, Python may not be added to the system path by default. Adding Python to the path enables CMD to find the Python executable.
Checking Python Installation
Before we dive into the troubleshooting tips, let’s check if Python is installed correctly on your system and if the installation directory is added to the PATH environment variable.
- Open Command Prompt: Click on the Start menu and type “cmd” to open Command Prompt.
- Check Python Version: Type “python” or “python –version” in Command Prompt and press Enter. This will show you the version of Python installed on your system.
- Verify Installation Directory: If Python is not recognized, verify that the installation directory exists and is added to PATH environment variable. Python defaults installed in the “C:\PythonXX\” directory, where XX represents the version number.
If you’ve installed Python in a non-default directory, check that location instead. You can do this by running the following command in Command Prompt:
where python
This command will show you the path to the Python executable, which can help verify the installation directory of Python on your system.
Verifying PATH Environment Variable
One common reason CMD does not recognize Python is an incorrect or missing PATH environment variable. The system uses the PATH variable to locate executables and scripts.
If the Python executable is not located in a directory defined in the PATH variable, CMD will not be able to recognize it.
To verify the PATH variable, follow these steps:
- Open the Start menu and search for “Environment Variables”.
- Click on “Edit the system environment variables”.
- In the System Properties window, click the “Environment Variables” button.
- In the “System Variables” section, scroll down and locate the “Path” variable. Click on “Edit”.
You should now see a list of directories separated by semicolons. Ensure that the directory containing the Python executable is included in this list.
If not, click “New” and add the path to the directory where Python is installed.
Note: Depending on your system configuration, the Python executable may be located in a subdirectory of the main Python installation directory. Ensure that you add the correct subdirectory path to the PATH variable.
Once you have added the correct path to the PATH variable, click on “OK” to close all windows. You will need to open a new instance of CMD for the changes to take effect.
Verify that CMD recognizes Python by opening CMD and typing “python –version”. If the version number of Python is displayed, CMD has successfully recognized Python.
Updating Python Environment Variables
After verifying and updating the PATH environment variable, you may need also to update other environment variables specific to Python to ensure that CMD recognizes it.
The first variable to check is the PYTHONPATH variable. This variable tells Python where to look for modules and packages you import. If this variable is not set or is incorrect, you may experience issues with CMD not recognizing Python commands.
To check the PYTHONPATH variable, open CMD and type:
echo %PYTHONPATH%
If the output is blank, the variable is not set. If the output is incorrect, you can update it by typing:
set PYTHONPATH=[path];%PYTHONPATH%
Replace [path] with the path to your Python installation directory. For example, if Python is installed in C:\Python39, the command would be:
set PYTHONPATH=C:\Python39; %PYTHONPATH%
Another important variable to check is the PYTHONHOME variable, which specifies the location of the Python executable. If this variable is not set or is incorrect, CMD may not recognize Python commands.
To check the PYTHONHOME variable, open CMD and type:
echo %PYTHONHOME%
If the output is blank, the variable is not set. If the output is incorrect, you can update it by typing:
set PYTHONHOME=[path]
Replace [path] with the path to your Python installation directory. For example, if Python is installed in C:\Python39, the command would be:
set PYTHONHOME=C:\Python39
Once you have checked and updated these environment variables, try running Python commands in CMD again to see if the issue has been resolved.
Troubleshooting Python Installation
If the previous steps did not resolve the issue of CMD not recognizing Python, there may be deeper issues with your Python installation.
Here are some additional troubleshooting tips:
Check for Python Updates
It’s possible that the version of Python you have installed is incompatible with your operating system or has known issues. Check for updates to Python and install the latest version.
Reinstall Python
If updating Python does not resolve the issue, try reinstalling Python. Make sure to fully uninstall the previous version before reinstalling.
Check for Anti-Virus Software Interference
Anti-virus software can sometimes interfere with the normal functioning of Python. Check your anti-virus software settings and disable it temporarily to see if it resolves the issue.
Note: Disabling anti-virus software can leave your computer vulnerable to security threats. Take appropriate precautions and enable your anti-virus software as soon as possible.
Seek Assistance from the Python Community
If all else fails, seek assistance from the Python community.
The vast and active community has forums, groups, and IRC channels dedicated to helping users resolve Python-related issues.
Tip: Before seeking assistance from the community, make sure to provide details about your system, Python installation, and the specific issue you’re facing. This will help the community understand the problem and provide relevant solutions.
Alternative Solutions
If you have followed the troubleshooting steps outlined in the previous sections but CMD still does not recognize Python, there are alternative solutions that may help you overcome this issue.
Reinstall Python
One option is to reinstall Python. This can sometimes resolve issues with the installation and ensure that all necessary files and environment variables are properly configured. Before reinstalling, completely remove all existing Python installations and associated files.
Use a different command prompt
If CMD does not recognize Python, another solution is using a different command prompt. PowerShell is an alternative option that may be more compatible with your system environment. You can also use third-party command prompt programs such as Cmder or Git Bash.
Seek assistance from the Python community
If all else fails, seek assistance from the Python community. Many online communities and forums are dedicated to Python, where you can ask questions and get support from experienced users.
Don’t hesitate to ask for help if you’re struggling with CMD not recognizing Python.
Conclusion
Dealing with CMD not recognizing Python can be frustrating, but we hope our troubleshooting tips and solutions have been helpful.
Remember to check your Python installation, verify and update the necessary environment variables, and consider alternative solutions.
Final Thoughts
If you still have issues with CMD recognizing Python after following these steps, don’t hesitate to seek assistance from the Python community. They may be able to provide further insights and solutions.
At the end of the day, it’s important to remember that technology can be finicky, but with patience and persistence, you can overcome any obstacles that come your way. We wish you the best of luck in your coding endeavors!
FAQ
Q: How can I fix CMD not recognizing Python on my computer?
A: Troubleshooting tips and solutions can help resolve the issue of CMD not recognizing Python. First, check your Python installation to ensure it is correct and added to the PATH environment variable. Then, verify the PATH variable and update it if necessary.
Additionally, update the Python-specific environment variables. If the issue persists, troubleshoot your Python installation or consider alternative solutions such as reinstalling or seeking assistance from the Python community.
Q: What does it mean when CMD does not recognize Python?
A: When CMD does not recognize Python, it indicates that the system cannot locate the Python executable or the necessary environment variables are not properly configured.
This can happen for various reasons and can be frustrating when you’re trying to execute Python commands through CMD.
Q: How do I check my Python installation?
A: To check your Python installation, ensure that Python is installed correctly on your system and the installation directory is added to the PATH environment variable.
You can verify your Python installation by running “python” or “python –version” in CMD. If the command is recognized, it means the installation is correct.
Q: How do I verify the PATH environment variable?
A: To verify the PATH environment variable, open the Command Prompt and type “echo %PATH%”. This command will display the current PATH variable. Check if the Python installation directory is listed in the PATH variable.
You must add it if it is not listed to ensure CMD can locate the Python executable.
Q: How do I update Python environment variables?
A: Apart from the PATH variable, other environment variables specific to Python may need to be updated.
To update these variables, you can use the “setx” command in CMD. For example, to update the PYTHONPATH variable, you can run “setx PYTHONPATH C:\Python27\Lib” in CMD.
Q: What should I do if CMD still does not recognize Python after verifying installation and environment variables?
A: If CMD still does not recognize Python even after verifying the installation, PATH variable, and environment variables, there may be deeper issues with your Python installation.
In such cases, it is recommended to troubleshoot the Python installation, reinstall Python if necessary, or seek assistance from the Python community.
Q: Are there alternative solutions for CMD not recognizing Python?
A: Yes, if the issue persists, there are alternative solutions you can try. These include reinstalling Python, using a different command prompt such as PowerShell or Git Bash, or seeking assistance from the Python community through forums or support channels.
Advertising links are marked with *. We receive a small commission on sales, nothing changes for you.
Readers help support Windows Report. We may get a commission if you buy through our links.
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
If you’re installing a package for Node on Windows 10, you might receive the following error: system cannot find python.exe.
This issue can become very annoying since it stops you from accessing your Python and Node files freely. In the past, we covered Python runtime error, but this is a different issue.
In today’s guide, we will take a closer look and show you the best ways to fix this problem.
Why does it say Python was not found?
- Missing Windows Build Tools on your PC.
- Python’s executable file is not in the environment variable.
Where does Python exe install?
Like any regular software, Python will be installed in the Program Files directory. The exact location is the following:
C:\Program Files\Python
How can I fix system cannot find python.exe error?
Install the Windows Build Tools
- Press Windows key + X and choose Windows PowerShell (Admin).
- Type in the following command:
npm install --global --production windows-build-tools
- After the first installation is completed, also install node-gyp by typing in the following command:
npm install node-gyp
- Press Enter.
Restart the terminal window and try to install the package with problems again. After making these changes, the installation process should go without any issues.
In this article, we explored the best and fastest way to deal with the system cannot find python.exe error while trying to install Node.
Missing components are usually responsible for this error, but you can fix that simply by running a few commands from the command line tool on your PC.
- Fix: An Error Occurred While Loading a Higher Quality Version of This Video
- iTunesMobileDevice.dll is Missing From Your Computer [Solved]
If you have more issues, visit our error loading Python DLL guide for more information. Our latest guide covers the python27.dll is missing issue, so be sure to visit it.
Follow these steps carefully, and this problem will be resolved. Please let us know if this fix worked for you by using the comment section below.
Milan Stanojevic
Windows Toubleshooting Expert
Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he spends most of his time learning about computers and technology.
Before joining WindowsReport, he worked as a front-end web developer. Now, he’s one of the Troubleshooting experts in our worldwide team, specializing in Windows errors & software issues.