reddit / emacs

pyvenv not working

ak11_noob · 2022-12-11 10:37
I am using Emacs 26.3 on Xubuntu 20.04. I installed pyvenv while installing elpy. But pyvenv is not working with eshell. First I created a new virtual environment using `pyvenv-create` in `~/.virtualenvs/venv` then I opened `eshell` and then ran `pyvenv-activate` and provided the above virtual environment path. The mode line was also showing something like `.virtualenvs` near eshell. But when I ran `which python` in eshell then It was showing me the default python directory and not that from virtual environment from the above path. I also checked for `sys.path` in python interactive shell but nothing changed. Please suggest me how to fix this or what wrong I did.
0lMon · 2022-12-11 13:32
Hej Hej, You have to first activate the pyvenv enviroment and after that you can start eshell. Not the other way around. Cheers, OlMon
ak11_noob · 2022-12-11 13:44
Thanks 🥲