0
2

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.

CentOS7+anaconda3-5.3.1インストール手順

Last updated at Posted at 2019-10-25

CentOSをインストールして、下記をrootで実行。

更新

yum update -y

SELinux

setenforce 0
vi /etc/sysconfig/selinux
SELINUX=disabled

vim, git

yum -y install vim-enhanced
yum -y install git

環境

git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc

解凍系

bzip2は、pyenv installで使うので必要。無いとインストールがエラーになる。

yum -y install zip
yum -y install unzip
yum -y install bzip2

インストール

pyenv install -l | grep anaconda
でバージョンを確認して、指定して入れる。

pyenv install anaconda3-5.3.1

下記が表示されたら成功。

[root@python ~]# pyenv install anaconda3-5.3.1
Downloading Anaconda3-5.3.1-Linux-x86_64.sh.sh...
-> https://repo.continuum.io/archive/Anaconda3-5.3.1-Linux-x86_64.sh
Installing Anaconda3-5.3.1-Linux-x86_64.sh...
Installed Anaconda3-5.3.1-Linux-x86_64.sh to /root/.pyenv/versions/anaconda3-5.3.1

設定

pyenv rehash
pyenv global anaconda3-5.3.1
echo 'export PATH="$PYENV_ROOT/versions/anaconda3-5.3.1/bin/:$PATH"' >> ~/.bashrc
source ~/.bashrc
conda update conda
Proceed ([y]/n)? y

update

conda update numpy
0
2
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
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?