I am trying to download a specific repository. It tells me to use pip installation from within my venv. I have never used python before so I assume that means to create a virtual environment and install from there. I had issues creating a virtual environment. I’ve been asking chatgpt to help me troubleshoot and keep looping the same responses. I’ll try and abbreviate some of the steps I used and what they confirmed: Python version is shown in git bash and command prompt. Python3 is not found. This python3 prompt returning that it’s not found obviously repeats throughout the other steps as well. When I try to create a virtual environment without the 3 in the prompt, command prompt and git bash skip a line and ask for a new command. When I go to the python installation directory to ask for the version, the version is shown. The python version and its scripts are appearing in path. Which python command correctly returns the executable. I had another version of python installed as well so I backed up the site-packages under the old version to the site-packages of the new version, before uninstalling the old version of python. I removed the paths for the old version of python including the old script path and tried all of these steps again with the same results. That takes me to where I am now. Any ideas on where I’m going wrong?
#🔒 Can't create a virtual environment.
98 messages · Page 1 of 1 (latest)
@mint talon
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
ok can you run where python in your terminal (assuming you are on windows)
It responds with the correct location
cool can you navigate to the folder where your project is/will be
It has a second location under microsoft\windowsapps though would that change anything?
that's the program that pops up the windows store if you don't have python installed but try to run python
Like with cd or just go to the file through the file explorer?
as long as you end up with the terminal in that location
Run it?
no
Ok I'm there.
It says "'py' is not recognized as an internal or external command,
operable program or batch file."
did you install python through website or windows store?
website
ok and when you ran the installer did you check all the options
adding to Path, etc
Uhhhhmmm... I think I did everything as it was recommended, except the path installation, then I set up the path manually after when I realized it was necessary.
Ah ok
and click on the modify option
and make sure all the optional features are checked
first page has everything except the global launcher. Continue?
tick the launcher
Actually it says I didn't check the launcher at all. Ok.
So just continue checking all the optional features?
yeah
k
they are very important except for the docs which you can find online
Now I have extra copies of the paths should I delete one of each?
what do you mean by this
In path I have two copies of python 312 and two copies of the script for python 312.
if they are completely the same then you can remove one but it doesn't really matter
order doesn't matter as long as it is there
yep making sure that you are in the project folder
k brb
Ok same error messages. Nothing said under the regular python command, just skips a line, and when I say the same with python 3 instead it says python not found. I restarted git bash before trying too.
make sure this is a fresh instance of the terminal
I restarted it, would that be a fresh terminal or does that mean something else? Should I try the command prompt as opposed to git bash?
Oh wait I wasn't in the folder.
I'll try the py -0 first
It says that command was not found
ok can you try from command prompt then
what if you run where py
says could not find info for the given patterns
ok so when you ran the installer
did you save the changes or install them or whatever?
I don't know how I would have saved them. It said complete and I exited. Do you mean the modifications or the original install? I don't remember much from the original.
ok can you try to do that again but don't touch the path this time
There was a close button in the bottom right so I figured it was done.
Ok.
Two of the options were not ticked. The py launcher and the precompile libraries. I don't know why I'm pretty sure I selected them.
Wondering if it has something to do with all the site-packages installed. I have like 230 of them.
that should be fine
Ok. I tried py -0 and where py again. Same results.
I kinda want to open the installer and see if the changes saved.
restart the terminal?
Yes. I have download debugging symbols and download debug binaries ticked as well.
ok did you press install?
Yes.
I tried that and where py again and same thing.
normal python also does not work?
Idk what you mean by normal python. Trying to download these repositories is the first time I've ever tried using python.
Just been doing this in git bash and command prompt.
ok in file explorer
if you go to C:\Program Files\Python312
do you see python.exe
No.
Well, there are folders that have python, but they're all in other folders. No folder for python itself as its own app.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.