1,打开终端,输入python3,进入python的终端,依次输入以下命令: python3 Python 3.6.8 (default, Oct 14 2021, 12:20:35) on linux Type help, copyright, credits or license for more information. from dustmaps.bayestar import BayestarQuery from astropy impor ...
安装Python3.8时遇到如下错误: subprocess.CalledProcessError: Command ‘(‘lsb_release’, ‘-a’)’ returned non-zero exit status 1 此时执行以下命令可以解决 m -rf /usr/bin/lsb_release
安装 Python3.8时候,遇到ModuleNotFoundError: No module named ‘_ctypes’的错误 ,解决方法是在命令行执行sudo apt-get install libffi-dev即可,然后重新执行make make install命令,若是遇到没有权限删除某文件,则su root进入超级用户权限,再执行上述安装命令。