-
Dowloand and install Anacaonda Python
-
Download OASIS from the GitHub
https://github.com/j-friedrich/OASIS/archive/master.zip
-
Unzip it
-
Install dependencies
conda install matplotlib numpy scipy cython
pip install ecos
pip install cvxpy
- Compile OASIS
python setup.py build_ext --inplace
- If the compilation(step 5) ever fails with compiler unavailability warning, clean the temporary files and install a working GCC compiler on windows based on your python version
- Cleaning temporary files from previous compilation
python setup.py clean --all
- Python 2.7 and <=3.4 : mingw
conda install mingw libpython
- Python 3.5=> : MSYS2 mingw-w64
conda install libpython
conda install -c msys2 m2w64-toolchain
- Repeat step 5
I followed above steps which all ran successfully without an error. Then, I tried 1st example code. I got following error:
Traceback (most recent call last):
File "c:\Users\manish\anaconda3\envs\oasis\OASIS-master\examples\fig1.py", line 7, in
from oasis.functions import gen_data
ModuleNotFoundError: No module named 'oasis'