DEV Community

Laraib Khan
Laraib Khan

Posted on

Unable to create Virtual env in Win 11...

Hi, There!
I want to create a virtual environment in my windows 11 but it throws fatal error.
My problem is that I uninstall the python from old location user/appdata/local/........./...

and reinstall it to

C:drive/program files/....

Image description

But when I hit

virtualenv myenv

Throws an error

Image description

then I run

pip install virtualenv

Image description

if you see the location pip pointing toward appdata folder in above image is the old location which I have deleted the python before.

Now I run following command to unistall the virtual env..

pip unistall virtualenv

Image description

if you see in this image the pip pointing and uninstalling the virtual environment package from the new location...

Now I trying to reinstall virtualenv pkg again

pip install virtualenv

Image description

after uninstalling and reinstalling virtual env it says _REQUIREMENT ALREADY SATISFIED _ which means it is pointing to the older location which is in appdata or you can see in above image also and it also throws an warning.

This problem is not only in this package it also happens with rest package

IF ANYONE KNOW THE PROBLEM PLEASE HELP ME :\

I did alot google search but didn't find a working solution.....

Latest comments (1)

Collapse
 
jules_lewis profile image
Jules • Edited

Not sure how to help with that, but is it worth trying pipenv until you find a solution? Pipenv is a great tool combining pip and virtualenv; you can find it here. Good luck! J

[Also, it it worth looking at your PATH Windows environment variable to see where that thinks Python is?]