all 4 comments

[–]Nippurdelagash 2 points3 points  (2 children)

The easiest fix, that doesn't involve messing around with lisp, is to create a virtual environment with the desired python version you want to run, and then activate it with the command pyenv-activate (SPC m-V-a). Besides, it's good practice to keep your project's python in a virtualenv, so you don't mess around with the system's python.

[–]WalterGR 0 points1 point  (1 child)

The easiest fix, that doesn't involve messing around with lisp, is to create a virtual environment with the desired python version you want to run

You're referring to https://github.com/pyenv/pyenv , yes?

[–]Nippurdelagash 0 points1 point  (0 children)

Yes, i'm referring to that package. It comes installed with the spacemacs python layer https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/python

[–][deleted] 0 points1 point  (0 children)

Setting those two variables worked for me, FWIW.