Emacs 28 and venv - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: News and Discussions (https://python-forum.io/forum-31.html) +--- Thread: Emacs 28 and venv (/thread-38837.html) |
Emacs 28 and venv - pisterpesto - Nov-29-2022 I am hoping for a fellow Emacs user being here. I would be very happy if something could explain to me dump terms how I get Emacs to be aware a standard Python venv using the default python-mode python.el .Not third-party tools like pyenv, anaconda etc. I found this explanation in python.el Quote:Shell virtualenv support: The shell also contains support for I have lots of small "projects" all over the place I just created a directory and executed python3 -m venv venv .I cannot import and modules from my venv in Emacs, even my I open a shell and activate the environment. And hardcoding python-shell-virtualenv-root in my init file for every project I have and for future projects. Doesn't seem right, that can't be what it is for. So how do one use venv in Emacs? RE: Emacs 28 and venv - Larz60+ - Nov-30-2022 something like this: https://github.com/jorgenschaefer/elpy ? |