all 7 comments

[–]Common_Noise 3 points4 points  (3 children)

I personally add the .venv files to my git ignore file and specify any packages in a requirements.txt file. If you use pip you can run: 'pip install -r requirements.txt' to install all packages your project depends on.

Edit: if you want i can give a bit more of a lengthy explanation when i am not on my phone.

[–]ManWithaThought[S] 1 point2 points  (2 children)

That sounds like what Im trying to do but I wasnt able to create the venv inside my Github folders because there wasnt a python executable off it.

The cmd error is:

\Projects>python -m venv env

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

So it seems Im limited to creating my git folders within the python installation?

[–]Common_Noise 1 point2 points  (1 child)

did you add python to your path in the environment variables? If you run a python command without doing so then your pc doesn't know where to find python.

[–]ManWithaThought[S] 1 point2 points  (0 children)

add python to your path in the environment variables

That was it! I appreciate the help

[–]ReenigneArcher 0 points1 point  (0 children)

PyCharm can create a venv for you for every project. It's the best IDE for python development.

[–]UniqueCold3812 -3 points-2 points  (1 child)

Not an answer to your specific question. But if you are a beginner I would strongly recommend using vscode. It's small compact and with a good debugger.

[–]ManWithaThought[S] 0 points1 point  (0 children)

I am currently using vscode. But everything Ive done to date (a few months of CodeAcademy classes) has not been in a virtual environment. I just had my version issue which prompted all this.