Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot get started
#1
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?
Reply
#2
Did you try py -m venv venv?
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


Reply
#3
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.
Reply
#4
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.
Reply
#5
Thank you - that works!!

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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help i just started the whole thing gabriel789 16 3,201 Sep-12-2022, 08:04 PM
Last Post: snippsat
  Can't even get started dr6 1 1,622 Aug-18-2020, 04:38 PM
Last Post: Larz60+
  Getting started mba_110 0 1,730 Jan-18-2019, 05:23 PM
Last Post: mba_110
  Getting Started wargasme 5 3,408 Jun-19-2018, 07:25 PM
Last Post: ichabod801
  Just getting started alwillia 6 3,568 May-20-2018, 07:22 PM
Last Post: ljmetzger

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020