1.打開pycham run->Edit Configurations 2.設置Enviroment variables 變量:LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64(注意自己cuda安裝的路徑)