Ubuntu, Pycharm, Theano, nvcc not found
Refer to this best answer: http://stackoverflow.com/questions/21486528/environment-path-different-when-using-venv/21488010#21488010
Then, what you need to do is to: start your Pycharm from the terminal.
sometimes, you need to add following items to your environment variable "PATH" in the your home path .bashrc file as following:
export PATH=$PATH:/usr/local/cuda/bin:/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/lib
then, you need to use
source .bashrc
to update the environment setting.
Finally, you need to open a new terminal to launch the new configuration, including the environment variables. Then, go to your pycharm path, use:
sh ./pycharm.sh
to start the new pycharm. That's all!