python: set $PYTHONPATH for environment By Ricardo MallaApril 30, 2023uncategorized I use this, because when I log in via SSH from another server, for some reason the PYTHONPATH is not set, so I set it up this way. vim /etc/environment: add to the end of the file PYTHONPATH="$PYTHONPATH:/YOUR_DESIRED_DIRECTORY:/"