-
Notifications
You must be signed in to change notification settings - Fork 3
Installing PINSPEC
PINSPEC uses several other libraries and packages that will need to be installed before using the code:
- Python v2.7
- matplotlib v1.2 or later
- numpy v1.7 or later
- scipy v0.12.0b1 or later
- SWIG
How to Install Supporting Packages for Ubuntu/Linux
How to Install Supporting Packages for Macs
How to Install Supporting Packages for Windows
##Linux Ubuntu Installation In order to install PINSPEC, you will first need to set up git (if you haven't already) using directions found here. To get the code on your local machine, you can clone it using the command in a terminal window:
git clone https://github.com/mit-crpg/PINSPEC.git PINSPEC
Once the code is on your machine, you can install the package. First navigate to the PINSPEC directory:
cd PINSPEC
For a standard build and installation as a standalone Python package accessible to all users of your machine:
python setup.py install --user
It is recommended that the user then run an example file to make sure the code runs correctly. Instructions can be found here.
##Mac Installation In order to install PINSPEC, you will first need to set up git (if you haven't already) using directions found here. To get the code on your local machine, you can clone it using the command in a terminal window:
git clone https://github.com/mit-crpg/PINSPEC.git PINSPEC
Once the code is on your machine, you can install the package. First navigate to the PINSPEC directory:
cd PINSPEC
For a standard build and installation as a standalone Python package accessible to all users of your machine:
env CC=gcc-mp-4.x python setup.py install --user
Where x is the version of gcc compiler your are using. So, if you are using gcc-4.7 the build and installation command would be:
env CC=gcc-mp-4.7 python setup.py install --user
Setting the C++ compiler is necessary to properly multi-thread PINSPEC on a mac.
It is recommended that the user then run an example file to make sure the code runs correctly. Instructions can be found here.