Installing dependencies on Windows
By setting up Windows Subsystem Linux
The first thing is to install the ubuntu environment in Windows by following these instructions:
Then you can, optionally install a graphical server for you subsystem using either:
Then in an ubuntu 18.04 terminal run the following commands:
sudo apt install firefox sudo apt-get install cmake gcc g++ gfortran liblapack-dev swig python3-dev python3-numpy python3-scipy python3-matplotlib python3-vtk7 paraview python3-pip libhdf5-dev hdf5-tools sudo -H pip install jupyter
Then follow the Linux instruction in the following here
By using Python Anaconda environment manager
First, it is not already present, download and install Anaconda Python Distribution from here:
- Anaconda (download version 3.x and NOT 2.7)
If you have any doubt, follow the default installation recommendations (install only for current user and do not change default PATH).
At time of writing, it is critical to not have any space in the path name of installation of Anaconda or you home directory. If that is not the case, you may not be able to install correctly or to create environment.
Once the installation is finished, you can then start Anaconda Prompt which will give you a black window in which you will be able to run command (like in any bash or powershell terminal). If you the rights (administrator or installation only for you), you can start by updating to latest version by running:
conda update -n base -c defaults anaconda
Then, create a new environment and install all the needed dependencies. The name lmgc90 will be used for this new environment, but you can choose any other that fit your preferences :
conda create -n lmgc90 python=3.7 conda activate lmgc90 conda install m2w64-gcc-fortran m2w64-make m2w64-openblas libpython conda install swig cmake conda install numpy scipy matplotlib vtk h5py pandas
You will be able, from now on, to activate this environment either from a conda console or within the anaconda navigator by selecting it in the list button next to Applications on field.
Furthermore it is advised to run the following command too:
conda init powershell
To be able to use
conda command from Windows Powershell instead of only using Anaconda Prompts.