Comment installer Python à l'aide d'Anaconda

Puisque python peut être facilement installé en utilisant anaconda, la procédure est décrite. En créant un environnement virtuel avec anaconda, il est possible d'utiliser plusieurs environnements tels que python2 et python3.

environnement

CentOS 6.8

Installez pyenv

Apportez pyenv de 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

Installation d'anaconda

Vérifiez la version installable d'anaconda

$ pyenv install -l | grep anaconda

anaconda2-x.x.x est la série python2, anaconda3-x.x.x est compatible avec la série python3.

Installation d'anaconda

Cette fois, installez la dernière version d'anaconda2-4.0.0 le 3 juillet 2016 sur la série pyhon2.

$ pyenv install anaconda2-4.0.0
$ pyenv rehash
$ pyenv global anaconda2-4.0.0

mettre à jour conda

$ conda update conda

Utilisation de l'environnement virtuel

Construire un environnement virtuel

Pour créer un nouvel environnement virtuel, exécutez la commande suivante. conda create -n <nom de l'environnement> python = <nom de bibliothèque séparé par des espaces>

En particulier,

$ conda create -n test1 python=2.7 numpy matplotlib scipy pandas jupyter

Et. Si vous souhaitez utiliser l'environnement système pyhon3, installez anaconda3 dans la même procédure et suivez la même procédure. Créez simplement un environnement avec conda

Vérification de l'environnement virtuel

$ conda env list

Ou

$ conda info -e

Application de l'environnement virtuel

Pour appliquer le nom d'environnement test1, exécutez la commande suivante

$ source PYENV_ROOT/versions/anaconda2-4.0.0/bin/activate test1

Si vous quittez,

$ source deactivate

c'est tout

Recommended Posts

Comment installer Python à l'aide d'Anaconda
Comment installer Python
Comment installer python
[2020.8 dernière] Comment installer Python
Comment installer Python [Windows]
[Python] Comment installer OpenCV sur Anaconda [Windows]
Comment installer Anaconda avec pyenv
Comment installer et utiliser pandas_datareader [Python]
python3 Comment installer un module externe
[Kivy] Comment installer Kivy sur Windows [Python]
Comment installer un package à l'aide d'un référentiel
Comment ajouter un module python à l'environnement anaconda
Comment installer python3 avec docker centos
Comment installer pip
Comment installer Archlinux
Comment installer BayesOpt
Comment installer Nbextensions
Comment installer Prover9
Comment installer Theano sur Mac OS X 10.10 (en utilisant pyenv, anaconda)
[Version 2020] Comment installer Python3 sur EC2 d'AWS
Comment installer OpenCV sur Jetson Nano Python
Comment installer Python pour les chercheurs de sociétés pharmaceutiques
Comment installer / vérifier Graphviz sur anaconda / windows10
[CentOS7] Installez anaconda à l'aide de pyenv
python3: Comment utiliser la bouteille (2)
Installer l'environnement Python avec Anaconda
Comment installer Tabpy 1.0 (version 2020-01)
[Python] Comment utiliser la liste 1
Comment mettre à jour Tkinter de Python vers la version 8.6
Anaconda mis à jour de 4.2.0 à 4.3.0 (python3.5 mis à jour vers python3.6)
Publier sur Twitter en utilisant Python
Comment utiliser Python Argparse
Commencez à Selenium en utilisant python
Comment installer mkl numpy
Python: comment utiliser pydub
[Python] Comment utiliser checkio
Comment exécuter Notepad ++ Python
Comment changer la version de Python
Comment installer le blog Pelican
Comment développer en Python
[python] Comment juger scalaire
[Python] Comment utiliser input ()
Comment utiliser Python lambda
[Python] Comment utiliser virtualenv
python3: Comment utiliser la bouteille (3)
python3: Comment utiliser la bouteille
Comment utiliser les octets Python
Comment configurer un environnement Python à l'aide de pyenv
Comment soumettre automatiquement des formulaires Microsoft à l'aide de python (version Mac)
Comment créer un package Python à l'aide de VS Code
Comment quitter lors de l'utilisation de Python dans Terminal (Mac)
Comment récupérer plusieurs tableaux à l'aide de slice en python.
[Introduction à Python] Comment arrêter la boucle en utilisant break?
Comment exécuter une commande à l'aide d'un sous-processus en Python
[Introduction à Python] Comment écrire des instructions répétitives à l'aide d'instructions for
[Python] Comment FFT des données mp3
[Python] Comment faire PCA avec Python
Python: comment utiliser async avec
Comment installer NPI + envoyer un message à la ligne avec python
Comment installer Python2.7 python3.5 avec pyenv (sur RHEL5 CentOS5) (novembre 2016)