Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

pyenv + anaconda + python3


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
pyenv install -l | grep ana #最新のパッケージを検索
pyenv install anaconda3-4.3.1
pyenv rehash
pyenv global anaconda3-4.3.1
echo 'export PATH="$PYENV_ROOT/versions/anaconda3-4.3.1/bin/:$PATH"' >> ~/.bashrc
source ~/.bashrc
conda update conda


仮想環境を作る、numpy, scipy, pandas, jupyterを同時にインストールする

conda create -n py3 python=3.4 numpy scipy pandas jupyter


source activate py3


source deactivate

パッケージはそれぞれの環境(rootを含め)にインストールされる。基本的にはconda installを使えばよいが、condaのレポジトリにないパッケージもある。このときはpipも使える。

conda install numpy scipy
conda uninstall numpy
conda install -n py3 numpy scipy
conda uninstall -n py3 numpy
conda update numpy
conda update -n py3 numpy
pip install numpy

例えば、Intel distribution for pythonをインストールするには

conda update conda
conda config --add channels intel
conda create -n idp intelpython3_core python=3
source activate idp
activate idp
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
Help us understand the problem. What are the problem?