- Saved searches
- Use saved searches to filter your results more quickly
- ‘WindowsApps\python.exe’ is not executable #12029
- ‘WindowsApps\python.exe’ is not executable #12029
- Comments
- Description of the problem / feature request:
- Feature requests: what underlying problem are you trying to solve with this feature?
- What operating system are you running Bazel on?
- What’s the output of bazel info release ?
- If bazel info release returns «development version» or «(@non-git)», tell us how you built Bazel.
- What’s the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?
- Have you found anything relevant by searching the web?
- Any other information, logs, or outputs that you want to share?
- Почему при введении команды пишет Python?
- Fix Python command open Microsoft store in Windows 11/10
- Fix Python command open Microsoft store:
- Solution 1: Check the Python path in Local Path variable:
- Solution 2: Disable Python App execution aliases:
- Исправление команды python для открытия магазина microsoft в windows 11/10
- Исправление команды Python open Microsoft store:
- Решение 1: Проверьте путь Python в переменной Local Path:
- Решение 2: Отключите псевдонимы выполнения приложений Python:
- YouTube video: Исправление команды Python для открытия магазина Microsoft в Windows 11/10
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
‘WindowsApps\python.exe’ is not executable #12029
‘WindowsApps\python.exe’ is not executable #12029
area-Windows Windows-specific issues and feature requests. more data needed P3 We’re not considering working on this, but happy to review a PR. (No assignee) team-Rules-Python Native rules for Python type: bug
Comments
Description of the problem / feature request:
I have Python installed through Windows Store. Bazel fails to use it:
—define PYTHON_BIN_PATH=’C:\Users\user\AppData\Local\Microsoft\WindowsApps\python.exe’ is not executable. Is it the python binary?
I can run python from command line: C:\Users\user\AppData\Local\Microsoft\WindowsApps is in PATH . However, file size is zero (I am guessing it uses some form of redirection).
Feature requests: what underlying problem are you trying to solve with this feature?
Use standard Python 3.6 for Windows from Store.
What operating system are you running Bazel on?
What’s the output of bazel info release ?
If bazel info release returns «development version» or «(@non-git)», tell us how you built Bazel.
What’s the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?
Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
The text was updated successfully, but these errors were encountered:
Почему при введении команды пишет Python?
Почему когда я пишу python get-pip.py то мне пишет Python
Простой 4 комментария
У вас есть питон, но нет pip. Ставить pip через pip, это классная рекурсия, но, увы, не сработает.
Надо скачать тот самый get-pip.py и правильно его запустить: https://pip.pypa.io/en/stable/installation/
Похоже, get-pip.py не скачен. Но это не точно.
У вас не установлен Python. Вместо этого вы вызываете заглушку, которая с некоторых пор поставляется с Windows 10/11. Эта заглушка, когда вызывается без параметров, должна открывать вам страницу в Microsoft Store, с которой можно быстро поставить Python. Она сделана для новичков, чтобы им было проще поставить Python. Если у вас Стор удалён или как-то заблокирован (не удивлюсь, т.к. многие его почему-то боятся), то возможно поэтому у вас ничего не открывается.
Если вы поставите Python из Стора, то команда python автоматически отвяжется от этой заглушки и привяжется к реальному интерпретатору Питона. Если поставите иным способом, возможно нужно будет выключить эту заглушку вручную, чтобы ваши шеллы не находили её в PATH раньше настоящего Питона. Это быстро делается через Manage app execution aliases на странице Apps & Features.
Лично меня Питон из Магазина почти во всём устраивает (особенно если им правильно пользоваться и использовать виртуальные окружения), но народ любит подискутировать на эту тему, поэтому не буду навязывать вам свою точку зрения на этот счёт.
У меня аналогичная ситуация, но ничего не помогает. Ни полное удаление Python, ни установка Python из Store, ни попытка запуска, когда установлены оба Python. Никак.
При установке новой системы всё нормально работает, но со временем, видимо при установке обновлений Windows при попытке запуска любого приложения Python получается такой же результат, как и у ANYJT.
Станислав Макаров помогите пожалуйста разобраться с ситуацией. Надоело из-за этого ставить новую систему.
Из системных переменных тоже удалял ссылки на приложение.
Устанавливал скаченный пакет приложения .11.2 с оффсайта с простановкой галки о добавлении системной переменной, устанавливал из Microsoft Store, устанавливал через Choco (всегда так делал).
Fix Python command open Microsoft store in Windows 11/10
Recently one user reported that while running a python command using a Windows command prompt it launches Microsoft Store. Usually most of the users after installing python, they used to check the version of python using the command prompt, python version command displays the current installed Python version. But for this user, we have noticed that the command launches the Microsoft store. The Problem is Windows automatically linked the Python command to initiate the installation of Python from the Microsoft Store. If you are facing a similar issue with Python, then this article will guide you to fix Python command open Microsoft Store in Windows 11/10.
Fix Python command open Microsoft store:
This issue occurs due to the Python aliases, when installing Python in Windows 11/10 the Aliases are in the ON position, then during the installation windows automatically adds the Windows apps path in the System Path variable. So when you enter the python command it will open the Microsoft store. Follow the below-mentioned resolution methods to fix this issue.
Solution 1: Check the Python path in Local Path variable:
Open the Run command by pressing Windows + R and type sysdm.cpl and hit enter, this command will open the System Properties Window.
Click on the Advanced tab and Click on Environment Variables.
Under System Variables, click on Path and choose Edit.
Under Edit Environment Variable, Look for the Python path, if you are not able to find the Python path then add the Python path manually .
Note: Add the Python path manually and move the path to the UP in the Local Environment variable.
Solution 2: Disable Python App execution aliases:
Open Windows settings by pressing Windows + I and from the left-hand side choose Apps. And from the right-hand side click on Apps & features.
Under Apps & features, click on More settings, then choose App execution aliases.
Under App execution aliases look for App Installer (python.exe), you can find two or three App Installers, Disable them all.
Mostly this will fix the issue, now reopen the command prompt and type the python command. That’s it.
You can also delete the python.exe from the Windows apps directory, “%USERPROFILE%\AppData\Local\Microsoft\WindowsApps“, but if you don’t have enough permission you’ll receive an error. So it’s better, just turn off the App Installer and get the issue resolved.
Исправление команды python для открытия магазина microsoft в windows 11/10
Windows 10
Недавно один пользователь сообщил, что при выполнении команды python с помощью командной строки Windows запускается Microsoft Store. Обычно большинство пользователей после установки python проверяют версию python с помощью командной строки, команда python version отображает текущую установленную версию Python. Но у этого пользователя мы заметили, что команда запускает магазин Microsoft. Проблема в том, что Windows автоматически связала команду Python, чтобы инициировать установку Python из магазина Microsoft. Если вы столкнулись с подобной проблемой с Python, то эта статья поможет вам исправить команду Python open Microsoft Store в Windows 11/10.
Исправление команды Python open Microsoft store:
Эта проблема возникает из-за псевдонимов Python, при установке Python в Windows 11/10 псевдонимы находятся в положении ON, тогда во время установки windows автоматически добавляет путь к приложениям Windows в переменную System Path. Поэтому при вводе команды python открывается магазин Microsoft. Следуйте приведенным ниже способам решения этой проблемы.
Решение 1: Проверьте путь Python в переменной Local Path:
Откройте команду Run, нажав Windows + R и введите sysdm.cpl и нажмите Enter, эта команда откроет окно Свойства системы.
Перейдите на вкладку Advanced и нажмите Environment Variables.
В разделе System Variables нажмите Path и выберите Edit.
В разделе Edit Environment Variable , найдите путь Python, если вы не можете найти путь Python, то добавьте путь Python вручную.
Примечание: Добавьте путь Python вручную и переместите путь в UP в переменной Local Environment.
Решение 2: Отключите псевдонимы выполнения приложений Python:
Откройте настройки Windows, нажав Windows + I и с левой стороны выберите Apps . А с правой стороны нажмите на Apps & features.
В разделе Apps & features нажмите на More settings, затем выберите App execution aliases.
В разделе App execution aliases ищите App Installer (python.exe) , вы можете найти два или три установщика приложений, отключите их все.
В основном это устранит проблему, теперь снова откройте командную строку и введите команду python. Вот и все.
Вы также можете удалить python.exe из каталога Windows apps, «%USERPROFILE%\AppData\Local\Microsoft\WindowsApps «, но если у вас недостаточно прав, вы получите ошибку. Поэтому лучше просто отключить App Installer и решить проблему.