【hoomd-blue】AttributeError: module 'fresnel.camera' has no attribute 'orthographic'解决办法
最近在linux上学习分子动力学模拟软件hoomd-blue的使用,之前在miniconda3的jupyter notebook平台用得好好的,今天突然在输入
import ex_render
命令时,遇到了
AttributeError: module 'fresnel' has no attribute 'Device'
这个错误。
我找到miniconda的site-package,把fresnel删了,错误依旧没变。
输入
$ conda install -c conda-forge fresnel
这个命令没用,电脑认为fresnel还是最新版(可我已经删了啊)。
要用
$ conda update -c conda-forge fresnel
这个命令,就会让被删掉的fresnel库装回来。还顺便把其它的依赖程序都装了起来。
终于,
import ex_render
被程序通过了。
可紧接着,
ex_render.render_disk_frame(system.take_snapshot(all=true))
命令报错了
AttributeError: module 'fresnel.camera' has no attribute 'orthographic'
这回把