virtualenv on Windows10 gives error:The path python3 does not exist
After reading this tutorial, I found the workaround for my case:
virtualenv --python "C:\\Anaconda3\\python.exe" env
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.
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.