隨筆1215 docker r+python

來源:互聯網
上載者:User

標籤:pac   tutorial   community   repos   version   michael   uri   unity   bin   

遍地的坑啊

 

目標 搭建docker sparkR

小目標 rpy2 fbprophet python3

 

坑1:

rpy2 如果要求python支援 需要 R

解決方案:去下載r

 

坑2:

ubuntu的不能下載latest 版本的 R 如果直接 

apt-get updateapt-get install r-base

  

會直接下載到3.1.1 而python3下的 rpy2要求 R -version >= 3.3.x

解決方案:https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-16-04-2

 

坑3:

gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.comgpg: key E084DAB9: public key "Michael Rutter <[email protected]>" importedgpg: Total number processed: 1gpg:               imported: 1  (RSA: 1)/bin/sh: 1: add-apt-repository: not found

add-apt-repository 無效

 

解決方案:依賴問題 先運行 apt-get update

 

坑4:

gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.comgpg: key E084DAB9: public key "Michael Rutter <[email protected]>" importedgpg: Total number processed: 1gpg:               imported: 1  (RSA: 1)Hit:1 http://security.ubuntu.com/ubuntu xenial-security InReleaseHit:2 http://archive.ubuntu.com/ubuntu xenial InReleaseHit:3 http://archive.ubuntu.com/ubuntu xenial-updates InReleaseHit:4 http://archive.ubuntu.com/ubuntu xenial-backports InReleaseReading package lists...E: The method driver /usr/lib/apt/methods/https could not be found.E: Failed to fetch https://cran.rstudio.com/bin/linux/ubuntu/xenial/InReleaseE: Some index files failed to download. They have been ignored, or old ones used instead.

  

解決方案:待解決

 

branch1:

嘗試直接加入key之後下載r

FROM ubuntuRUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9  && apt-get update  && apt-get install -y  r-base r-base-dev

  

這個是最新的穩定版本 3.2.3顯然不符合標準。。。

話說營運的活 感覺一天一天都在編譯失敗中讀過 那是多麼絕望又痛苦的生活啊

隨筆1215 docker r+python

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.