Home:ALL Converter>Ubuntu Virtualbox: PYTHONPATH gone after restart

Ubuntu Virtualbox: PYTHONPATH gone after restart

Ask Time:2021-03-31T04:54:42         Author:Phobos

Json Formatter

I use ubuntu 20.04 on virtualbox and set the python path with the given command

export PYTHONPATH="/path/to/local/folder/"

where my source files for modules I want to load are located. But everytime I reboot the VM, the python path is reset, echo $PYTHONPATH does not return anything. I hope someone could help me with this issue as I'm really new to ubuntu.

Edit: I work in a conda virtual environment and want to set the path there

Author:Phobos,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/66878367/ubuntu-virtualbox-pythonpath-gone-after-restart
yy