How would I activate a specific virtual environment
in my init file
? I know how to activate it manually, but I don't like to do it every time I start emacs.
To activate it manually I used:
pyvenv-activate
Then a path
needs to be specified and it works. So I tried the following in the init file:
(pyvenv-activate PATH_TO_VENV)
Unfortunately it tells me:
Invalid function: (quote pyvenv-activate)
I want to do this, because without activating the venv
, elpy
does not find it and thus doesn't find jedi
etc.