Please assist, Using Windows Command Prompt. I have virtual environment setup. I am learning Django Docs Polls App for a month now. I am getting ready to learn to set up Jazzband debug toolbar. Now the virtual environment cannot access Python or Django. I have Python 3.10 on my computer which I'm able to use. When I switch to the virtual environment and check for the version or try to run Django, I get the error: (envmysite) C:\Users\Frantz Exantus\Desktop\mysite>python --version
Unable to create process using 'C:\Users\Frantz Exantus\AppData\Local\Programs\Python\Python310\python.exe --version' one thing i did was download Microsft Visual Studio which may have done something. I have uninstalled but still getting an error
#Python has disappeared from my virtual environment
1 messages · Page 1 of 1 (latest)
Have you tried recreating venv?
venv are expandable, you only want to track installed packages usually, but if you just starting it's not a big deal
uh oh now i cant create another venv
C:\Users\Frantz Exantus\Desktop>python --version
Python 3.10.5
C:\Users\Frantz Exantus\Desktop>python -m venv env2
Error: Command '['C:\Users\Frantz Exantus\Desktop\env2\Scripts\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 101.
Is it all to error message?
webs say for similar issue:
Uninstall Python.
Install with the Custom option.
Use the "Install for all users".
I'm not using windows, so not sure about that specific error
But yeah looks like some installation was broken
Perplexity AI gave me similar answer to uninstall Python as last resort. What about resetting the PATH? I’ve never done that so im clueless going that route. If I uninstall Python will i lose all my installed libraries? Because i run a flask app from computer and its not in a venv, and it has about 100 libraries installed. Would i have to reinstall all libraries?
There is no indication problem is with PATH (it might be, just no evidence)
status 101 is cryptic, I'm not sure what it is
Maybe google a bit more what exactly this error means, I didn't find a good explanation on a quick one
Yeah, reinstalling python may wipe libraries. That's another reason to always use venvs
You can freeze system packages too though, and reinstall them from a list file