Skip to content
New issue

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

"Python was not found; run without arguments to install from the Microsoft Store..." appeared in Python project. #7829

Open
ttSpace opened this issue Feb 18, 2024 · 9 comments
Assignees

Comments

@ttSpace
Copy link

ttSpace commented Feb 18, 2024

Describe the bug

image

Python from VS.

Steps to Reproduce

  1. Create a Python Application.

Additional context and screenshots

image

Logs

Output for General in the Output panel

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

@StellaHuang95
Copy link
Contributor

@ttSpace I can't repro this one. Do you have any python installed on your machine? Can you provide a gif of the repro steps?

@ttSpace
Copy link
Author

ttSpace commented Feb 22, 2024

@StellaHuang95 In today's build 17.10.0 Preview 2.0 [34621.182.main] , Python Package: 17.0.24045.1, I can repro it.
Python installed from VS.

image

projecterror

@StellaHuang95
Copy link
Contributor

Can you follow the steps here and see if that fixes your issue? Also, are you able to run python project at all? Thanks!

@ttSpace
Copy link
Author

ttSpace commented Feb 23, 2024

In today's build 17.10.0 Preview 2.0 [34622.236.main], Python Package: 17.0.24045.1, I can repro it. (I followed the steps but it doesn't work. )
The Python project can be run.

image

@StellaHuang95
Copy link
Contributor

Can you check if you have added the path where your Python interpreter is installed into your environmental variable? Put this path into System variable, not in user variable.

@StellaHuang95
Copy link
Contributor

I am still not able to repro this one with a clean install in my devbox. I was on Microsoft Visual Studio Enterprise 2022 (64-bit) - Int Preview Version 17.10.0 Preview 3.0 [34704.287.main]

@ttSpace
Copy link
Author

ttSpace commented Mar 6, 2024

I can repro In today's build.

image

It cannot be reproduced after being added to the system environment.

image

@linette-zyy
Copy link

linette-zyy commented Mar 15, 2024

In today's build,python install from Microsoft Store.

image

There is an error after creating a virtual-environment.

image

@ttSpace
Copy link
Author

ttSpace commented Apr 19, 2024

I can repro in today's build. Python installed from VS.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants