Apparently Python development setup in VSCode on a Mac could be very easy, but also very complex.
I’ve decided to run pipenv as a package/environment manager, which should be supported by VSCode out of the box. It is and it isn’t.
Apparently something in the chain of detection uses Click, which has
an issue when your LC_ALL
and LANG
are not set. In my case LC_ALL
was
blank, and my LANG
was set to en_AU.utf-8
.
I had to add to my ~/.bash_profile
:
export LANG=en_AU.utf-8 # manually added, just to be sure
export LC_ALL=$LANG
Then once I restarted VSCode it found my pipenv interpreter and all was fine.
Tags: VSCode Python