Open biocyberman opened 6 years ago
This is not supported by default in Elpy.
You can use .dir-locals.el
to specify the virtualenv for pyvenv-tracking-mode
. Alternatively, you can look at the definition of pyvenv-tracking-mode
to get some inspiration on how to do this in your init.el without adding new files to your project (or .gitignore).
Does this help?
Thanks I will check that out.
You can always try this https://github.com/jorgenschaefer/pyvenv/issues/51#issuecomment-474785730
I usually have a
env
orvenv
directory which is created bypython3 -m venv env
. How do I get this virtual environment activated automatically when I open any python script undermyapp
and its subdirectories. Even more useful I have option set deactivate automatically virtual environmentenv
if I navigate and open python scripts outside ofmyapp
: