22
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

chromebookへのminicondaインストール (chromebrew+git使用)

Last updated at Posted at 2015-12-06

chromebrewでgitが直接入れられることに気づいたので作成。
こっちよりスマートかも。
chromeosは色々権限の問題があるので、少し変化球が必要。
chromebookは ASUS C300MAを使用

chromebrewのインストール

これはさくっと入る
参考URL

wget -q -O - https://raw.github.com/skycocker/chromebrew/master/install.sh | bash
sudo chown -R chronos:chronos /usr/local

/usr/local/bin/にいっぱい入る

0h              cpp          gettext             ld         msginit          pod2latex          pyvenv           testrb
2to3            crew         gettextize          ld.bfd     msgmerge         pod2man            pyvenv-3.3       tic
2to3-3.3        curl         gettext.sh          ldd        msgunfmt         pod2text           rake             toe
a2p             curl-config  git                 less       msguniq          pod2usage          ranlib           tput
addr2line       diff         git-cvsserver       lessecho   mtrace           podchecker         rdoc             tset
ar              diff3        gitk                lesskey    ncurses5-config  podselect          readelf          tzselect
as              elfedit      git-receive-pack    libnetcfg  ngettext         prove              recode-sr-latin  x86_64-unknown-linux-gnu-c++
autopoint       enc2xs       git-shell           locale     nm               psed               reset            x86_64-unknown-linux-gnu-g++
c++             envsubst     git-upload-archive  localedef  objcopy          pstruct            ri               x86_64-unknown-linux-gnu-gcc
c2ph            erb          git-upload-pack     make       objdump          ptar               rpcgen           x86_64-unknown-linux-gnu-gcc-4.8.1
captoinfo       find2perl    gprof               makedb     pcprofiledump    ptardiff           ruby             x86_64-unknown-linux-gnu-gcc-ar
catchsegv       g++          h2ph                msgattrib  perl             ptargrep           s2p              x86_64-unknown-linux-gnu-gcc-nm
c++filt         gcc          h2xs                msgcat     perl5.18.1       pydoc3             sdiff            x86_64-unknown-linux-gnu-gcc-ranlib
clear           gcc-ar       iconv               msgcmp     perlbug          pydoc3.3           shasum           xgettext
cmp             gcc-nm       idle3               msgcomm    perldoc          python             size             xmlwf
config_data     gcc-ranlib   idle3.3             msgconv    perlivp          python3            sotruss          xsubpp
corelist        gcov         infocmp             msgen      perlthanks       python3.3          splain           xtrace
cpan            gem          infotocap           msgexec    piconv           python3.3-config   sprof            zipdetails
cpan2dist       gencat       instmodsh           msgfilter  pl2pm            python3.3m         strings
cpanp           getconf      irb                 msgfmt     pldd             python3.3m-config  strip
cpanp-run-perl  getent       json_pp             msggrep    pod2html         python3-config     tabs

pyenvのインストール

git clone https://github.com/yyuu/pyenv.git /usr/local/bin/.pyenv
git clone https://github.com/yyuu/pyenv-update.git /usr/local/bin/.pyenv/plugins/pyenv-update

~/直下だとその後installができないので場所を変える。

.bashrcにおまじないを追記する。

echo 'export PYENV_ROOT="/usr/local/bin/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc

#minicondaのインストール
/tmpに書き込めないので、普通に入れようとすると下記のエラーが出る。
python-build: TMPDIR=/tmp cannot hold executables (partition possibly mounted with noexec)
rvenvの例を参考にTMPDIRを指定して入れてあげる。
SSDが心もとないのでminicondaを利用。

cd /usr/local/bin
TMPDIR="${PWD}/tmp" pyenv install miniconda3-latest
pyenv global miniconda3-latest
pyenv rehash

これでcondaもpipも使えるので割りと自由にpythonの環境が作れる。

22
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?