I have just installed pyenv following the installation guide pyenv-win, things goes smoothly, but i could not make the pyenv global python as the global interpreter
I have rehashed
after installation using pyenv rehash
PS D:\> pyenv versions
3.5.1
3.6.2
3.7.7
* 3.8.2 (set by C:\Users\xxx\.pyenv\pyenv-win\version)
results
> python --version
> 3.8.4
# expected
> 3.8.2
therefore, I am not able to use virtualenv
with the pyenv
installed python interpreter
virtualenv py382-djangodev --python=3.8.2
The path 3.8.2 (from --python=3.8.2) does not exist
In windows NT, the PATH
variable is a combined result of the system and user variables:
The Path is constructed from the system path, which can be viewed in the System Environment Variables field in the System dialog box. The User path is appended to the system path
Shims PATH
are defined in the user variables, so make sure your host python interpreter path is not defined in your system path