Jupyter Notbook cannot refresh environment variables in .bashrc

Jupyter Notbook cannot refresh environment variables in .bashrc

reason

In the Linux system, .bashrcafter adding environment variables in , I opened jupyter notebook and found that the added environment variables could not be loaded. This is because it .bashrconly works for bash. If you use GUI software to access it directly, you cannot load the variables in it.

Solution

.profileWhen the system starts, the configuration file of the shell environment variables will be initialized. We can put the environment variables /etc/profilein the file and restart the system.

Guess you like

Origin blog.csdn.net/qq_27386899/article/details/132000701