当我使用conda创建了一个新环境以后,在导入tensorflow时出现了(同样的tensorflow1.8版本在base环境下导入却没有这个问题)
terminate called after throwing an instance of 'Xbyak::Error'
what(): internal error
已放弃 (核心已转储)
错误
上网搜了一番,有人说可以使用pip安装tensorflow
pip install tensorflow-gpu==1.8
然而在我尝试了之后出现了以下问题
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
然后通过使用conda-forge源安装
conda install -c conda-forge tensorflow-gpu
能够将tensorflow更新到1.10版本,但在测试的时候使用的却是cpu(测试代码)
最后,我使用conda install
将tensorflow更新到1.10版本就可以了
conda install tensorflow-gpu==1.10