reason
In the Linux system, .bashrc
after adding environment variables in , I opened jupyter notebook and found that the added environment variables could not be loaded. This is because it .bashrc
only works for bash. If you use GUI software to access it directly, you cannot load the variables in it.
Solution
.profile
When the system starts, the configuration file of the shell environment variables will be initialized. We can put the environment variables /etc/profile
in the file and restart the system.