丨Pycharm IDE丨问题汇总
程序员文章站
2022-06-01 12:08:35
...
1、问题一: 运行tensorflow找不到cuda的库。
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
原因:pycharm环境变量设置问题。
解决:
1) cuda9的环境变量:
export PATH=/usr/local/cuda-9.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/extras/CUPTI/lib64
2) 将 ' LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64 ' 添加进pycharm的环境环境变量。环境变量添加
2、运行程序说:warning: Debugger speedups using cython not found