Why do the environment variables set in command prompt have no effect when I start Spyder
问题 I am using the Spyder Anaconda IDE for Python. I am writing a code in the Spyder IDE that requires few environment variables to be set ($CPATH, $LIBRARY_PATH and $LD_LIBRARY_PATH) for the Theano library. I am starting Spyder using the command sudo ./spyder and it starts fine. Even though I set the environment variables in my /root/.bashrc file, the code still fails to accept the path and if I try printing print os.environ["LD_LIBRARY_PATH"] it raises a KeyError. I tried all the above with a