Configuration de l'environnement Python sous Linux

1. Téléchargez anaconda

Programme d'installation d'Anaconda pour linxu:  https://www.anaconda.com/distribution/#linux

wget https: // repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh

2. Installation

bash Anaconda3- 2020.02 -Linux-x86_64. sh

3. Ajouter un chemin

echo  ' export PATH = "~ / anaconda3 / bin: $ PATH" ' >> ~ / .bashrc
source .bashrc

4. Test

conda - version
python --version

5. Mise à niveau (facultatif)

mise à niveau conda - tous

6. Configurer l'environnement

conda create -n nom_env python = 3.7 anaconda
conda activate nom_env

Opérations liées à l'environnement Conda

Demandes

liste de conda env

Quitter

conda désactiver

Supprimer l'environnement

conda env supprimer --name nom_env

 

7. Installez le package

Paquets d'images

pip install torch torchvision -f https: // download.pytorch.org/whl/torch_stable.html - aucune dépendance 
pip install scikit-learn == 0.21 . 3 
pip installer six
pip install scipy == 1.1 . 0 
pip install web.py == 0.40 .dev1
pip install opencv- pythoninstaller 
pip Djangooreiller d' installation 
conda = 6.2 . 1 
Conda installer cudnn = 7,6 . 5 
Conda installer cudatoolkit = 10.0

Packages PNL

pip install altgraph == 0.16 . 1 pdfminer.six
pip install beautifulsoup4 == 4.7 . 1 
pip install bs4 == 0,0 . 1 xlrd == 1.2 . 0 
pip installation future == 0,17 . 1 mammouth == 1,4 . 10 
pip install joblib == 0.11 macholib == 1.11 numpy == 1.17 . 3 
pip install pefile == 2019.4 . 18 PyInstaller == 3.4 regex == 2019.4 . 14pandas == 0,24 . 2 chardet == 3.0 . 4 textiles == 3.0 . 4 
pip install scikit-learn == 0,21 . 3 scipy == 1.3 . 0 setuptools == 40,6 . 2 soupsieve == 1,9 . 1 pkuseg == 0,0 . 22 gensim == 3.7 . 1

 

8. Installez IDE

Pycharm:  http://macappstore.org/pycharm/

 

Je suppose que tu aimes

Origine www.cnblogs.com/sherrydatascience/p/12729877.html
conseillé
Classement