Installation via Conda¶
gospl and its dependencies stack can be a tedious and
One of the simplest way to install not only
gospl, but required Python
packages is with Anaconda, a cross-platform (Linux, Mac OS X, Windows) Python distribution for data analytics and
After running the installer, the user will have already access to some essential Python packages and will be able to install a functioning
gospl environment by following the directives below.
Another advantage to installing Anaconda is that you don’t need admin rights to install it. Anaconda can install in the user’s home directory, which makes it trivial to delete Anaconda if you decide (just delete that folder).
The previous section outlined how to get download the Anaconda distribution. However this approach means you will install well over one hundred packages and involves downloading the installer which is a few hundred megabytes in size.
Conda is the package manager that the Anaconda distribution is built upon. It is a package manager that is both cross-platform and language agnostic (it can play a similar role to a pip and virtualenv combination).
The next step consists in downloading the conda environment for
A conda environment is like a virtualenv that allows you to specify a specific version of Python and set of libraries.
This is done by downloading the conda-env.yml file. To do this you can use the
curl https://raw.githubusercontent.com/Geodels/gospl/master/conda-env.yml --output conda-env.yml
This will save the file locally under the same name as it was on github:
Alternatively you can get it from your preferred web browser by clicking on the following link: conda-env.yml and saving it under the following name
gospl is not directly packaged as a Conda library because some of its dependencies are not available via this installation. The use of the environment file however provides an easy installation approach.
Navigate to the directory containing the conda-env.yml file and run the following commands from a terminal window:
conda env create -f conda-env.yml
This will create an environment with the dependencies and packages required to run
To put your self inside this environment run:
source activate gospl-package
On Windows the command is:
To install other packages, IPython for example:
conda install ipython
To install the full Anaconda distribution:
conda install anaconda
If you need packages that are available to
pip but not
pip library is already installed, and can be used to install those packages:
pip install django
To remove the environment, in your terminal window or an Anaconda Prompt, run:
conda remove --name gospl-package --all
To verify that the environment was removed, in your terminal window or an Anaconda Prompt, run:
conda info –envs
gospl-package package should not be in the list of environment anymore.