Pyont pipenv can allow us to create a virtual python environment. However, when we run pip install, we may get this error: ValueError: Not a valid python path. In this tutorial, we will introduce you how to fix it.
Here is an example:
As to us, C:/Program Files/Anaconda2/Scripts/python.exe does not exist.
How to fix this error?
The simplest way is to install pipenv 2018.10.13.
Here is an example:
pip install pipenv==2018.10.13
Then we run pipenv install command again. We will find this error is fixed.
This has been very helpful after spending 3 hours.