Python Forum
Cannot get started - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Cannot get started (/thread-39469.html)



Cannot get started - standenman - Feb-22-2023

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?


RE: Cannot get started - menator01 - Feb-22-2023

Did you try py -m venv venv?


RE: Cannot get started - snippsat - Feb-22-2023

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.


RE: Cannot get started - standenman - Feb-22-2023

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.



RE: Cannot get started - standenman - Feb-22-2023

Thank you - that works!!

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