#🔒 Can't create a virtual environment.

98 messages · Page 1 of 1 (latest)

mint talon
#

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?

azure reefBOT
#

@mint talon

Python help channel opened

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.

subtle ingot
#

ok can you run where python in your terminal (assuming you are on windows)

mint talon
subtle ingot
#

cool can you navigate to the folder where your project is/will be

mint talon
#

It has a second location under microsoft\windowsapps though would that change anything?

subtle ingot
mint talon
subtle ingot
subtle ingot
mint talon
subtle ingot
#

cool can you run py -0

#

just to make sure you have the right python currently

mint talon
#

It says "'py' is not recognized as an internal or external command,
operable program or batch file."

subtle ingot
#

did you install python through website or windows store?

mint talon
#

website

subtle ingot
#

ok and when you ran the installer did you check all the options

#

adding to Path, etc

mint talon
#

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.

subtle ingot
#

hmm ok

#

do you still have the installer file?

mint talon
#

I'll check rn

#

Omg it says amd did I download the wrong one?

subtle ingot
#

that's fine

#

can you repoen it

mint talon
#

Ah ok

subtle ingot
#

and click on the modify option

#

and make sure all the optional features are checked

mint talon
#

first page has everything except the global launcher. Continue?

subtle ingot
mint talon
#

Actually it says I didn't check the launcher at all. Ok.

#

So just continue checking all the optional features?

subtle ingot
#

yeah

mint talon
#

k

subtle ingot
#

they are very important except for the docs which you can find online

mint talon
#

Now I have extra copies of the paths should I delete one of each?

subtle ingot
mint talon
#

In path I have two copies of python 312 and two copies of the script for python 312.

subtle ingot
#

if they are completely the same then you can remove one but it doesn't really matter

mint talon
#

ok

#

Should the script one go before or after?

subtle ingot
#

order doesn't matter as long as it is there

mint talon
#

ok

#

Now that all the features are there, try everything again?

subtle ingot
#

yep making sure that you are in the project folder

mint talon
#

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.

subtle ingot
mint talon
#

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?

subtle ingot
#

it shouldn't really matter

#

ok what about py -0 does that work

mint talon
#

Oh wait I wasn't in the folder.

#

I'll try the py -0 first

#

It says that command was not found

subtle ingot
#

ok can you try from command prompt then

mint talon
#

ok

#

Same result in there, not in a folder though.

subtle ingot
#

what if you run where py

mint talon
#

says could not find info for the given patterns

subtle ingot
#

ok so when you ran the installer

#

did you save the changes or install them or whatever?

mint talon
#

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.

subtle ingot
#

ok can you try to do that again but don't touch the path this time

mint talon
#

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.

subtle ingot
#

that should be fine

mint talon
#

Ok. I tried py -0 and where py again. Same results.

#

I kinda want to open the installer and see if the changes saved.

subtle ingot
mint talon
#

I did

#

I'll try it again.

#

Same result.

subtle ingot
#

when you click next in the installer

#

do you see this

mint talon
#

Yes. I have download debugging symbols and download debug binaries ticked as well.

subtle ingot
#

ok did you press install?

mint talon
#

Yes.

subtle ingot
#

ok so if you press windows key and r

#

and type in cmd

#

and run that

#

and do py -0

mint talon
#

I tried that and where py again and same thing.

subtle ingot
mint talon
#

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.

subtle ingot
#

ok in file explorer

#

if you go to C:\Program Files\Python312

#

do you see python.exe

mint talon
#

No.

mint talon
#

Well, there are folders that have python, but they're all in other folders. No folder for python itself as its own app.

azure reefBOT
#
Python help channel closed

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.