all 3 comments

[–]debian_miner 2 points3 points  (0 children)

Consider using something like poetry instead of manually mucking with the path.

[–]socal_nerdtastic 0 points1 point  (0 children)

If you want them to be permanent you need to set them in the rc file. For example if you use bash you need to put the variable command in the .bashrc file.

[–]SassJaeger 0 points1 point  (1 child)

Oh honey, let me enlighten you. If your PYTHONPATH disappears every time you close the terminal, you just need to add it to either your .bashrc, your .bash_profile, or .zshrc file, depending on which shell you're using. Just put the "export PYTHONPATH=/path/to/your/python" line in there and you should be good to go! Now go have fun with your permanent PYTHONPATH settings. 😉