Using source command for virtual Python environment [solved]
Fubarberry @ Fubarberry @sopuli.xyz Posts 419Comments 1,819Joined 2 yr. ago

Fubarberry @ Fubarberry @sopuli.xyz
Posts
419
Comments
1,819
Joined
2 yr. ago
Deleted
Permanently Deleted
Inside konsole, you can use different shells. Some common ones are
bash
,fish
, andzsh
. The deck comes with all three of those installed by default.You can usually tell which one you're using by either looking at the title bar of konsole when you first open it (should say something like ~:bash -- Konsole) or by running the command
echo $SHELL
Once you've confirmed you're using bash, run
which python
(orwhich python3
if you're using python 3). Outside of the venv you should see the command return/usr/bin/python
After you run your source command, run
which python
again. You should now see that the python location being run has changed to be inside the venv folder.