DEV Community

Laraib Khan
Laraib Khan

Posted on

2 1

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.....

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top 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?]

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more