Currently, discretize will run on Python 2.7, 3.5, 3.6 and 3.7. We recommend that you use the latest version of Python available on Anaconda.
We will be dropping support for Python 2.7 by 2020 <https://python3statement.org/>.
Python is available on all major operating systems, but if you are getting started with python it is best to use a package manager such as Anaconda. You can download the package manager and use it to install the dependencies above.
When using Continuum Anaconda, make sure to run:
conda update conda conda update anaconda
discretize is on pypi:
pip install discretize
If the pip install fails, please try installing the most recent version of Visual Studio Community from https://visualstudio.microsoft.com/vs/community/
Within the Python development options, ensure that the following are included
- Cookiecutter template support
- Python web support
- Python 3 64-bit
Installing from Source¶
If you are not a developer then pip is really the preferred way. However, if you are an active developer of discretize you might want to install if from source:
First (you need git):
git clone https://github.com/simpeg/discretize
Second (from the root of the discretize repository):
python setup.py build_ext --inplace
This builds the cython extensions. You will also need to add the discretize directory to your PYTHON_PATH.