2017-01-29 136 views
0

如何解決此問題?未找到包創建conda環境,但無法安裝它

[email protected]:~$ conda create -n r322 r=3.2.2 
Fetching package metadata ......... 
Solving package specifications: . 


PackageNotFoundError: Package not found: '' Dependency missing in current linux-64 channels: 
    - r 3.2.2* -> r-base 3.2.2 -> libgcc 

Close matches found; did you mean one of these? 

    libgcc: libgd, libmagic 

You can search for packages on anaconda.org with 

    anaconda search -t conda libgcc 

[email protected]:~$ conda list | grep libgcc 
[email protected]:~$ conda install libgcc 
Fetching package metadata ......... 
Solving package specifications: . 


PackageNotFoundError: Package not found: '' Package missing in current linux-64 channels: 
    - libgcc 

Close matches found; did you mean one of these? 

    libgcc: libgd, libmagic 

You can search for packages on anaconda.org with 

    anaconda search -t conda libgcc 
+1

你可以分享輸出:'conda info' –

回答

0

充分披露,這並不直接解決您上市(冒着downvote)的問題,但我認爲這個替代方法適用於什麼,我相信你想做的事情。

棘手的是,r語言是在不同的channel。特別是,this看起來像你想要的包。理想情況下,conda create命令可以讓您指定該頻道,但看起來不像那樣。相反,您可以嘗試創建一個空的環境 - this看起來像推薦的方式 - 然後在該環境中進行安裝。換句話說,你可以試試這個:

conda create -n r322 python 
source activate r322 
conda install --channel r r=3.3.2 
相關問題