|
Phoebe是目前双星研究领域新流行的一个软件,基于python编写,目前phoebe最新版本需要python3的支持,因此需要首先安转好python3,本笔记简要记录下安装的步骤,如下:
Step by step guide to install Python 3.6 and pip3 in Ubuntu
1,首先安装一些必要的依赖的程序包:
Install the necessary packages for Python and ssl:
$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
2,下载和加压Python3的安装包:Python-3.6.8.tar.xz
Download and unzip "Python-3.6.8.tar.xz" from https://www.python.org/ftp/python/ into your home directory.
3,在解压的目录中进行配置和安装:
Open terminal in that directory and run: $ ./configure
Build and install: $ make && sudo make install
4,安装好Python3以后,可以继续使用下列命令安装其他的包:
Install packages with: $ pip3 install package_name
5,参考phoebe的官方网站,就可以进行一键式的安装:
pip3 install numpy phoebe==2.3.24
Phoebe官网:http://phoebe-project.org/
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-12-21 22:56
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社