2017-04-03 1 views
2

J'ai besoin d'installer VTK et mayavi sur Ubuntu 16. J'ai Anaconda avec Python 3.6. Si je lance:Installer VTK avec anaconda 3.6

conda install -c menpo vtk=7.0.0 vtk 

Je reçois:

Fetching package metadata ........... 
Solving package specifications: . 


    UnsatisfiableError: The following specifications were found to be in conflict: 
     - python 3.6* 
     - vtk 7.0.0* -> python 3.5* -> openssl 1.0.1* 
     - vtk 7.0.0* -> python 3.5* -> xz 5.0.5 
    Use "conda info <package>" to see the dependencies for each package. 

Apparemment, j'ai besoin Anaconda avec Python3.5, mais ce n'est pas Availabe. Une idée? :)

Répondre

4

Je n'ai pas ubuntu essayer, mais est semble que vous utilisez un canal qui prend en charge Linux https://anaconda.org/menpo/vtk/files (pour Python 2.7, 3.4, 3.5)

avez-vous besoin que python spécifique, OpenSSL et la version xz? Sinon, créez un nouveau enviroment et laisser tri Anaconda sur la compatibilité de la version

conda install -n envA -c menpo vtk=7 python=3 

ou si vous voulez être plus précis:

conda install -n envB -c menpo vtk=7 python=3.5 

ou (si vous êtes bien avec python 2 et VTK 6 vous pouvez utiliser le package VTK de la distribution de Conda)

conda install -n envC vtk python=2 
+0

Cela fonctionne pour moi, il suffit d'utiliser: '' 'Conda installer -c Menpo VTK = 7''' –

5

Vous pouvez également utiliser ceci: https://anaconda.org/clinicalgraphics/vtk le VTK est le 7.1.0 ceux et a été construit à python 3.6 ; D

le code pour le faire est la suivante: Conda install -c clinicalgraphics VTK = 7.1.0