-
Notifications
You must be signed in to change notification settings - Fork 95
Getting started
You'll need a version of Python 3 installed on your system with the following packages:
- Numpy
- Scipy (version 0.17 at least. The simplex solver
linprog
is provided since 2015) - Scikit-learn
- NetworkX
- Pandas (make sure you have the latest version)
- xlwt
- xlsxwriter
- Matplotlib
- Numba
- PyQt4
The standard Anaconda distribution works out of the box.
Otherwise install the listed packages in your Python distribution using pip
.
- Download the anaconda installer from here. Pick the python 3.x version in 64 bits.
- Install python in a separated folder. Do not mark the installation for all the users nor to add it to the PATH.
- Copy Gridcal to the same folder where the Anaconda Python was installed.
- Once installed, create a
.bat
file containing.\Anaconda\python .\GridCal\main_gui.py
- Gridcal is executable by double-clicking the
.bat
file. Should work out of the box.
I have experience in Ubuntu only, but you should be available to install everything from the package manager.
- The stand-alone instructions are valid for Linux only that instead of a
.bat
file it must be a.sh
file
You will be asked for the BLAS/LAPACK libraries and for a FORTRAN compiler, for that do:
sudo apt-get install gfortran libblas-dev liblapack-dev
Then try upgrading the Python3 Numpy and Scipy packages
sudo pip3 install --upgrade numpy
sudo pip3 install --upgrade scipy
Somehow the Pip3 version installed from the Ubuntu repositories might not be able handle Numpy/Scipy updates. In that case we need to update the Pip3 command first:
sudo easy_install3 -U pip3
Following this link the commands to install Numba on linux systems are:
Ubuntu 14.04
sudo apt-get install zlib1g zlib1g-dev libedit2 libedit-dev llvm-3.6 llvm-3.6-dev llvm-dev
pip3 install enum34 funcsigs
LLVM_CONFIG=/usr/bin/llvm-config-3.6 pip3 install llvmlite
LLVM_CONFIG=/usr/bin/llvm-config-3.6 pip3 install numba
Ubuntu 14.10
sudo apt-get install zlib1g zlib1g-dev libedit libedit-dev llvm-3.5 llvm-3.5-dev llvm-dev
pip3 install enum34 funcsigs
LLVM_CONFIG=/usr/bin/llvm-config-3.5 pip3 install llvmlite
LLVM_CONFIG=/usr/bin/llvm-config-3.5 pip3 install numba
Ubuntu 15.04
sudo apt-get install zlib1g zlib1g-dev libedit2 libedit-dev llvm-3.6 llvm-3.6-dev llvm-dev
pip3 install enum34 funcsigs
LLVM_CONFIG=/usr/bin/llvm-config-3.6 pip3 install llvmlite
LLVM_CONFIG=/usr/bin/llvm-config-3.6 pip3 install numba
Since I don't have an apple system I have no clue, but if you manage to install the Anaconda python distribution you should be good.
- The stand-alone instructions should be valid for OSX only that instead of a
.bat
file it must be a.sh
file