2016-12-31 3 views
0

에 CONDA를 사용하여 xgboost 설치, 나는 오류가데비안

UnsatisfiableError: The following specifications were found to be in conflict: 
    - python 3.5* 
    - xgboost 0.4.0* 
Use "conda info <package>" to see the dependencies for each package. 

명령 conda info xbgoost 그것을 수정하고 xgboost를 설치하는 호 나에게

NoPackagesFoundError: Package missing in current linux-64 channels: 
    - xgboost 

을 제공해야 ?

답변

0

그냥 입력 conda install py-xgboost

0

conda 4.3.5부터 채널을 conda info으로 지정하는 옵션이 없습니다. 그래서 패키지의 정보를 인쇄 할 수있다 :

(root) ~/condaexpts $ conda config --add channels aterrel                                    
(root) ~/condaexpts $ conda info xgboost                                        
Fetching package metadata ........... 

xgboost 0.4.0.c4fa2f py27_0 
--------------------------- 
file name : xgboost-0.4.0.c4fa2f-py27_0.tar.bz2 
name  : xgboost 
version  : 0.4.0.c4fa2f 
build string: py27_0 
build number: 0 
channel  : aterrel 
size  : 441 KB 
arch  : x86_64 
license  : ALv2 
md5   : 8f282fc35e18ef443771617459eeb8ad 
platform : linux 
requires :() 
subdir  : linux-64 
url   : https://conda.anaconda.org/aterrel/linux-64/xgboost-0.4.0.c4fa2f-py27_0.tar.bz2 
dependencies: 
    numpy 
    python 2.7* 
    scikit-learn 
    scipy 

xgboost 0.4.0 np19py27_0 
------------------------ 
file name : xgboost-0.4.0-np19py27_0.tar.bz2 
name  : xgboost 
version  : 0.4.0 
build string: np19py27_0 
build number: 0 
channel  : aterrel 
size  : 270 KB 
arch  : x86_64 
license  : ALv2 
md5   : 8dd98afb385109adb42f08337842cc18 
platform : linux 
requires :() 
subdir  : linux-64 
url   : https://conda.anaconda.org/aterrel/linux-64/xgboost-0.4.0-np19py27_0.tar.bz2 
dependencies: 
    numpy 1.9* 
    python 2.7* 
    scikit-learn 
    scipy   

(root) ~/condaexpts $ conda config --remove channels aterrel 

또한 채널의 manifest에서 동일한 정보를 볼 수 있습니다. 다시 원래의 질의에 오는

, aterrel's channel에서 패키지 xgboostpython 2.7과하지 패키지 이름에서 빌드 문자열 py27에 의해 또한 분명하다 python 3.5을 위해 내장되어 있기 때문에 발생하는 충돌이있다.

당신은, 그러나, python 3.5 위해를 구축 할 수 있습니다 : 아나콘다 4.4.0와

(root) ~/condaexpts $ wget https://anaconda.org/aterrel/xgboost/0.4.0.c4fa2f/download/linux-64/xgboost-0.4.0.c4fa2f-py27_0.tar.bz2 
(root) ~/condaexpts $ tar -xf xgboost-0.4.0.c4fa2f-py27_0.tar.bz2 -C /tmp/xgboost/ 
(root) ~/condaexpts $ conda install conda-build -y 
(root) ~/condaexpts $ conda-build /tmp/xgboost/info/recipe 
(root) ~/condaexpts $ conda install xgboost --use-local -y 
Fetching package metadata ........... 
Solving package specifications: . 

Package plan for installation in environment /home/ubuntu/condaexpts/m3: 

The following NEW packages will be INSTALLED: 

    xgboost: 0.4.0.c4fa2f-py35_0 local 
(root) ~/condaexpts $ python -c 'import xgboost; print(xgboost.__version__)' 
0.4