||
说明: Ubuntu 20.04.3安装时有很多的问题,换成了Ubuntu20.04.2成功安装。
PHOEBE 2.3 has been tested to build and run on python 3.6+ . You can check your installed version of python3 with:
(base) abren@AR:~$ python3 --version
Python 3.9.7
(base) abren@AR:~$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
(base) abren@AR:~$ sudo nano /etc/apt/sources.list
# Add these three lines in the file
deb http://archive.ubuntu.com/ubuntu trusty main restricted
deb http://dk.archive.ubuntu.com/ubuntu/ xenial main
deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe
Note for Ubuntu 14.04 users: g++ is not installed by default. You’ll likely need to to do the following in order to install PHOEBE:
(base) abren@AR:~$ sudo apt install g++-5 gcc-5 libstdc++-5-dev
(base) abren@AR:~$ export CXX=g++-5
Additionally, in order to build the C-sources, make sure you have Python.h headers for the correct version of python3, by installing python3-dev via your package manager.
The following should work for debian-based systems (Ubuntu, etc):
(base) abren@AR:~$ sudo apt-get install python3-dev
(base) abren@AR:~$ sudo apt install g++
To install the latest version of PHOEBE:
(base) abren@AR:~$ python -m pip install phoebe
or
(base) abren@AR:~$ pip3 install numpy phoebe
Reference:
http://phoebe-project.org/install#pip
20220415@nc
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-24 09:56
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社