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 normal user but still it fails. How can I get Spyder IDE to be able to view files in the above paths and where can I set them inside Spyder?