*  Informatique / Python / Installing Minconda Python 2.7 with Mayavi 4.5.0 on Windows 10

pict pict

Download the miniconda (Python 2.7, 64-bit) Windows installer on https://conda.io/miniconda.html or directly from this (official) link https://repo.continuum.io/miniconda/Miniconda2-latest-Windows-x86_64.exe.

Run this Windows Installer. During the installation it’s possible to install this distribution for Just Me (default) and not for All Users. So the default installed directory is C:\Users\<username>\Miniconda2 where <username> is the current user name. In Advanced Installation Options, you can let default options if there is no other Python distribution installed otherwise uncheck all options.

To install the mayavi Python package, lauch the Anaconda Prompt and execute the following command

(Miniconda2)> conda install mayavi=4.5.0

Here is a part of the output
Fetching package metadata ...........  
Solving package specifications: .  
Package plan for installation in environment C:\Users\<username>\Miniconda2:  
The following NEW packages will be INSTALLED:  
    apptools:  4.4.0-py27_0  
    configobj: 5.0.6-py27_0  
    envisage:  4.5.1-py27_0  
    mayavi:    4.5.0-py27_0  
    mkl:       2017.0.3-0  
    numpy:     1.13.1-py27_0  
    pyface:    5.1.0-py27_0  
    pygments:  2.2.0-py27_0  
    pyqt:      4.10.4-py27_1  
    traits:    4.6.0-py27_0  
    traitsui:  5.1.0-py27_0  
    vtk:       6.3.0-py27_1  
The following packages will be UPDATED:  
    conda:     4.3.21-py27_0 --> 4.3.25-py27_0  
Proceed ([y]/n)?y  

To quickly test the mayavi package, close and restart the Anaconda Prompt and run the python code mayavi_boy.py (774 bytes) .

(Miniconda2)> python mayavi_boy.py

One can install some other usefull packages (for me) as scipy, ipython, ...

(Miniconda2)> conda install scipy ipython

To date, due to conflict in packages version, it’s not possible to install (with mayavi package) the matplotlib package for a version >1.5.1.

It’s also possible to lauch python or ipython from the Windows Command Prompt (windows console/terminal) by setting correctly the environment variable path. In the following command, <MINICONDA2> must be replaced by the installation directory ( C:\Users\<username>\Miniconda2 in previous examples)

@set pypath=<MINICONDA2>;<MINICONDA2>\Library\mingw-w64\bin;<MINICONDA2>\Library\usr\bin;  
@set pypath=<MINICONDA2>\Library\bin;<MINICONDA2>\Scripts;%pypath%  
@set path=%pypath%;%path%