学 点 新 知--做 点 事 情分享 http://blog.sciencenet.cn/u/dabing 平时多记点,东西就多了...

博文

phoebe install on Ubuntu 20.04.4

已有 2007 次阅读 2022-4-25 21:21 |个人分类:Ubuntu软件安装|系统分类:科研笔记

linux version: Ubuntu 20.04.4

    说明: Ubuntu 20.04.3安装时有很多的问题,在Ubuntu20.04.4上成功安装。


  • Dependencies

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-get 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++

  • Installing from PIP

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


20220425@nc




https://blog.sciencenet.cn/blog-287062-1335612.html

上一篇:Ubuntu、Mac、Windows文件传输共享
收藏 IP: 218.6.128.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-8-1 03:21

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部