-
Notifications
You must be signed in to change notification settings - Fork 47
Mac Installation Instructions
Bharat Medasani edited this page Jun 25, 2021
·
22 revisions
Before installing simsopt
, get openmpi
either through HomeBrew or MacPorts. Then install conda
-
Install macports. The installation instructions can be found here.
-
Install gcc. Here gcc9 is selected. To select other versions use
port search gcc
.sudo port install gcc9
-
After installing gcc9, set it as default gcc. To find the installed versions of gcc use the command
port select --list gcc
. Since we have only gcc9,sudo port select --set gcc mp-gcc9
-
Install openmpi.
sudo port install openmpi
Coming soon.
- If using conda virtual environment, activate the virtual environment
conda activate <your_ve>
- Install simsopt. It is advisable to install mpi4py also along with simsopt.
- If installing from pypi, it is very simple.
pip install "simsopt[MPI]"
- For local install, get the source code either by downloading the zip file and unzip or via git. Then change to the simsopt directory and do a local install. For editable install (if you are a developer, you don't want to reinstall simsopt after changing the source code), use the
-e
flag.cd simsopt pip install -e ".[MPI]"
- If installing from pypi, it is very simple.