将Mayavi安装到Anaconda中 [英] Installing Mayavi into Anaconda

查看:565
本文介绍了将Mayavi安装到Anaconda中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Mayavi安装到我的anaconda安装中,因为我运行了以下命令,但收到一条错误消息,我不确定如何处理:

I want to install Mayavi into my anaconda installation for that I ran the following commands, but got an error message I am not sure how to deal with:

user@Kubuntu:~$ source activate myenv
(myenv)user@Kubuntu:~$ conda install mayavi
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata: ....
Solving package specifications: ....

The following specifications were found to be in conflict:
  - anaconda-client (target=anaconda-client-1.6.0-py35_0.tar.bz2) -> python 2.7*|3.3*|3.4*|3.5*|3.6*
  - anaconda-client (target=anaconda-client-1.6.0-py35_0.tar.bz2) -> pytz
  - anaconda-client (target=anaconda-client-1.6.0-py35_0.tar.bz2) -> requests *|>=2.9.1
  - behave (target=behave-1.2.5-py35_0.tar.bz2) -> parse >=1.6.3
  - behave (target=behave-1.2.5-py35_0.tar.bz2) -> python 3.5*
  - clyent (target=clyent-1.2.2-py35_0.tar.bz2) -> python 2.7*|3.3*|3.4*|3.5*|3.6*
  - cycler (target=cycler-0.10.0-py35_0.tar.bz2) -> python 2.7*|3.4*|3.5*|3.6*
  - cycler (target=cycler-0.10.0-py35_0.tar.bz2) -> six
  - matplotlib (target=matplotlib-1.5.3-np111py35_1.tar.bz2) -> freetype 2.4*
  - matplotlib (target=matplotlib-1.5.3-np111py35_1.tar.bz2) -> numpy 1.10*|1.11*|1.5*|1.6*|1.7*|1.8*|1.9*
  - matplotlib (target=matplotlib-1.5.3-np111py35_1.tar.bz2) -> pyparsing *|1.5.6|2.0.1|2.0.3
  - matplotlib (target=matplotlib-1.5.3-np111py35_1.tar.bz2) -> pyqt 4.*|5.*
  - matplotlib (target=matplotlib-1.5.3-np111py35_1.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*
  - matplotlib (target=matplotlib-1.5.3-np111py35_1.tar.bz2) -> pytz
  - mayavi -> numpy *|1.7*|1.8*|1.9*
  - mayavi -> pyqt 4.*
  - mayavi -> python 2.7*
  - mayavi -> setuptools
  - numpy (target=numpy-1.11.3-py35_0.tar.bz2) -> python 2.7*
  - pandas (target=pandas-0.19.2-np111py35_1.tar.bz2) -> numpy 1.10*|1.11*|1.6*|1.7*|1.8*|1.9*
  - pandas (target=pandas-0.19.2-np111py35_1.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*
  - pandas (target=pandas-0.19.2-np111py35_1.tar.bz2) -> pytz                                                                                                                                             
  - pandas (target=pandas-0.19.2-np111py35_1.tar.bz2) -> scipy                                                                                                                                            
  - parse (target=parse-1.6.6-py35_0.tar.bz2) -> python 3.5*                                                                                                                                              
  - parse_type (target=parse_type-0.3.4-py35_0.tar.bz2) -> parse >=1.6                                                                                                                                    
  - parse_type (target=parse_type-0.3.4-py35_0.tar.bz2) -> python 3.5*                                                                                                                                    
  - parse_type (target=parse_type-0.3.4-py35_0.tar.bz2) -> six                                                                                                                                            
  - pip (target=pip-9.0.1-py35_1.tar.bz2) -> python 2.7*                                                                                                                                                  
  - pip (target=pip-9.0.1-py35_1.tar.bz2) -> wheel                                                                                                                                                        
  - py (target=py-1.4.32-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*                                                                                                                          
  - pyparsing (target=pyparsing-2.1.4-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*                                                                                                             
  - pyqt (target=pyqt-5.6.0-py35_1.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*                                                                                                                       
  - pytest (target=pytest-3.0.5-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*                                                                                                                   
  - python 3.5*                                                                                                                                                                                           
  - python-dateutil (target=python-dateutil-2.6.0-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*                                                                                                 
  - python-dateutil (target=python-dateutil-2.6.0-py35_0.tar.bz2) -> six                                                                                                                                  
  - pytz (target=pytz-2016.10-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*                                                                                                                     
  - pyyaml (target=pyyaml-3.12-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*                                                                                                                    
  - requests (target=requests-2.12.4-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*
  - scipy (target=scipy-0.18.1-np111py35_1.tar.bz2) -> numpy 1.10*|1.11*|1.5*|1.6*|1.7*|1.8*|1.9*
  - scipy (target=scipy-0.18.1-np111py35_1.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*
  - setuptools (target=setuptools-27.2.0-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*
  - sip (target=sip-4.18-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*
  - six (target=six-1.10.0-py35_0.tar.bz2) -> python 2.6*|2.7*|3.3*|3.4*|3.5*|3.6*
  - wheel (target=wheel-0.29.0-py35_0.tar.bz2) -> python 2.7*|3.3*|3.4*|3.5*|3.6*
Use "conda info <package>" to see the dependencies for each package.

问题 python Anaconda中的mayavi 与Windows而不是Linux上的错误不同。

The question mayavi in python Anaconda is about a different error and on Windows, not Linux.

我该怎么办?

推荐答案

问题是conda软件包适用于Python 2.7,而您拥有python 3.5。在 https://anaconda.org/search?q=mayavi 中搜索适合的软件包。在那里,您可以找到软件包conda install -c menpo mayavi = 4.5.0,可以与一起安装conda install -c menpo mayavi = 4.5.0 ,该软件包应与Python 3.5兼容

The issue is that the conda package is for Python 2.7 and you have python 3.5. Search for a fitting package at https://anaconda.org/search?q=mayavi. There you find the package conda install -c menpo mayavi=4.5.0 which you can install with conda install -c menpo mayavi=4.5.0 and which should work with Python 3.5.

这篇关于将Mayavi安装到Anaconda中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆