I installed and added Python3.9 and Pip to the PATH through the installer.
python --version # Python 3.9.7 pip --version # pip 21.2.4 from C:Users{MyUserName}AppDataLocalProgramsPythonPython39libsite-packagespip (python 3.9)
I installed pipenv with pip install pipenv
and pipenv --version
outputs pipenv, version 2021.5.29
. Although, if I try to install any package with pipenv, or just enter the pipenv shell and then run python --version
, I always get No Python at 'C:Python39python.exe'
.
Python sys path is C:Users{MyUserName}AppDataLocalProgramsPythonPython39
, so why does pipenv look into another folder? And how can I fix this?
I’m running all these commands in git bash.
Advertisement
Answer
I solved this by manually creating C:Python39
and copying python.exe
there. Now it works fine.