logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).


L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT → ODT PDF Export

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision Les deux révisions suivantes
utilisateurs:hypathie:tutos:developpement-pyhon-utiliser-django [14/12/2015 06:52]
Hypathie [Créer des projets Django en python2 ou python3]
utilisateurs:hypathie:tutos:developpement-pyhon-utiliser-django [14/12/2015 07:04]
Hypathie [Créer des projets Django en python2 ou python3]
Ligne 137: Ligne 137:
  
 <code user>git clone https://​github.com/​yyuu/​pyenv.git ~/​.pyenv</​code>​ <code user>git clone https://​github.com/​yyuu/​pyenv.git ~/​.pyenv</​code>​
 +
 +  * On configure le PATH en ajoutant quelques lignes au fichier ~/.bashrc
 +
 <code user>​echo '​export PYENV_ROOT="​$HOME/​.pyenv"'​ >> ~/​.bashrc</​code>​ <code user>​echo '​export PYENV_ROOT="​$HOME/​.pyenv"'​ >> ~/​.bashrc</​code>​
  
 <code user>​echo '​export PATH="​$PYENV_ROOT/​bin:​$PATH"'​ >> ~/​.bashrc</​code>​ <code user>​echo '​export PATH="​$PYENV_ROOT/​bin:​$PATH"'​ >> ~/​.bashrc</​code>​
 <code user>​echo 'eval "​$(pyenv init -)"'​ >> ~/​.bashrc</​code>​ <code user>​echo 'eval "​$(pyenv init -)"'​ >> ~/​.bashrc</​code>​
 +
 +  * On recharge son shell
 +
 <code user>​exec $SHELL</​code>​ <code user>​exec $SHELL</​code>​
-<code user>​pyenv</​code>​ 
-<code retour>​pyenv 20151124-16-g132179d 
-Usage: pyenv <​command>​ [<​args>​] 
  
-Some useful pyenv commands are: +  ​* On installe les versions de python ​que l'on voudra utiliser dans différents projets
-   ​commands ​   List all available pyenv commands +
-   ​local ​      Set or show the local application-specific Python version +
-   ​global ​     Set or show the global Python version +
-   ​shell ​      Set or show the shell-specific Python version +
-   ​install ​    ​Install a Python version using python-build +
-   ​uninstall ​  ​Uninstall a specific Python version +
-   ​rehash ​     Rehash pyenv shims (run this after installing executables) +
-   ​version ​    Show the current Python version and its origin +
-   ​versions ​   List all Python versions available to pyenv +
-   ​which ​      ​Display the full path to an executable +
-   ​whence ​     List all Python versions that contain the given executable+
  
-See `pyenv help <​command>'​ for information on a specific command. 
-For full documentation,​ see: https://​github.com/​yyuu/​pyenv#​readme</​code>​ 
 <code user>​pyenv install 2.7.9</​code>​ <code user>​pyenv install 2.7.9</​code>​
 <code user>​pyenv install 3.4.3</​code>​ <code user>​pyenv install 3.4.3</​code>​
utilisateurs/hypathie/tutos/developpement-pyhon-utiliser-django.txt · Dernière modification: 06/01/2016 10:18 par Hypathie

Pied de page des forums

Propulsé par FluxBB