Python Forum

Full Version: Cannot get started
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I cannot get started with my python project. I have installed python311 and I have included the path in my environmental variables. In command prompt in my project folder I try to create a virtual enviroment and get this:

Error:
C:\Users\stand\PDFExtractTest>python -m venv venv Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
If I run py at the command prompt I get this:

Error:
C:\Users\stand\PDFExtractTest>py Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information
Isn't that telling me python is found?
Did you try py -m venv venv?
You can use py as posted over.
It also ok to have python in Path for Editors setup.. eg.
Here how to change Environment Variables Path
Same as image but you point to Path where you have installed Python 3.11.
If not sure of Path use this command in cmd,so the Path that it return is what you set as in image under.
C:\Users>py -c "import sys; print(sys.executable)"
[Image: WfreEG.png]
Test that python and pip works in cmd.
THANK YOU for this most helpful answer!

(Feb-22-2023, 04:35 PM)snippsat Wrote: [ -> ]You can use py as posted over.
It also ok to have python in Path for Editors setup.. eg.
Here how to change Environment Variables Path
Same as image but you point to Path where you have installed Python 3.11.
If not sure of Path use this command in cmd,so the Path that it return is what you set as in image under.
C:\Users>py -c "import sys; print(sys.executable)"
[Image: WfreEG.png]
Test that python and pip works in cmd.
Thank you - that works!!

(Feb-22-2023, 04:07 PM)menator01 Wrote: [ -> ]Did you try py -m venv venv?