Virtualenv On Windows10 Gives Error:The Path Python3 Does Not Exist
Solution 1:
After reading this tutorial, I found the workaround for my case:
virtualenv --python "C:\\Anaconda3\\python.exe" env
Solution 2:
If python --V
is showing a version greater than 3, then why not try:
virtualenv -p python env
instead? The value of the p
flag is simply referring to the version of python you're wanting to create the virtual environment with. In this case, python
is greater than version 3.
Solution 3:
Use something like this: virtualenv --python "Your python.exe path" 'Name of your virtual folder'. You can take your python.exe path from your environment variables which is in properties of your 'This PC' or 'My Computer'.
Then get into the folder and run the command: .\Scripts\activate
Enter the command pip freeze to make sure you have created your virtual environment successfully! It should return nothing since it is like an empty basket. Look at how it comes in the picture.
Solution 4:
Just a comment: On my Win10, for python3 scripts, I run py c:\path\to\script.
For example:
py -m pip --version
So to make the above command work, I used:
py -m venv env
and:
virtualenv -p py env
So that could be a possible solution as well.
Post a Comment for "Virtualenv On Windows10 Gives Error:The Path Python3 Does Not Exist"