ubuntu20.04虚拟环境中安装了scipy库后,程序中仍然无法导入
使用ubuntu20.04系统,python=3.8,由于代码依赖scipy,于是我在对应的虚拟环境中使用mamba install scipy
并且安装成功,可以成功导入
但是使用rosrun运行时,仍然显示
ModuleNotFoundError: No module named 'scipy'
我使用
mamba list
查看,可以看到已经安装好了scipy
求解答
使用ubuntu20.04系统,python=3.8,由于代码依赖scipy,于是我在对应的虚拟环境中使用mamba install scipy
并且安装成功,可以成功导入
ModuleNotFoundError: No module named 'scipy'
mamba list
查看,可以看到已经安装好了scipy
解决了,我把原来文件的内容复制到新创建的python文件中重新运行就好了