I am starting to use venv to manage my packages.
Here I could use terminal to do it, or just do it in jupyter notebook, so that I could do the installation during my software dev work.
However, when I create and activate my virtual env, it seems jupyter didn’t receive that message.
First I run this two command to create and activate the venv
!python -m venv first_venv
!source first_venv/bin/activate
Then when I run pip install faker
it still installed in the system folder like /usr/local/lib/… rather than under first_venv/lib/pythonx.x/…
If I want to install it there I have to run: !first_venv/bin/pip install
which is ugly and tedious, moreover, I can’t import the faker module I installed this way.
So actually I am not in the “virtual env mode”, I am still in the normal env mode.
Is there a way to activate my virtual env then do everything in my virtual env in jupyter notebook? Or if I can’t I could only use terminal to do this, let me know, too