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 →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:hypathie:tutos:developpement-pyhon-utiliser-django [09/12/2015 21:26] Hypathie [Installations] |
utilisateurs:hypathie:tutos:developpement-pyhon-utiliser-django [09/12/2015 21:42] Hypathie [Installations] |
||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
===== Installations ===== | ===== Installations ===== | ||
- | **Installer les outils et bibliothèques pour développer en python ou python3** | + | ===Installer les outils et bibliothèques pour développer en python ou python3=== |
<note tip> | <note tip> | ||
Ligne 72: | Ligne 72: | ||
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ | libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ | ||
ruby-dev mercurial</code> | ruby-dev mercurial</code> | ||
+ | | ||
+ | ===Vim IDE pour python3 === | ||
+ | |||
+ | * On supprime les versions vim existantes sur le système | ||
+ | |||
+ | En effet, | ||
+ | |||
+ | <code user> | ||
+ | vim --version | ||
+ | </code> | ||
+ | |||
+ | <code retour>VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 23:36:07) | ||
+ | Rustines incluses : 1-488, 576 | ||
+ | Modifié par pkg-vim-maintainers@lists.alioth.debian.org | ||
+ | Compilé par jamessan@debian.org | ||
+ | Énorme version avec interface graphique GTK2. | ||
+ | Fonctionnalités incluses (+) ou non (-) : | ||
+ | +acl +farsi +mouse_netterm +syntax | ||
+ | +arabic +file_in_path +mouse_sgr +tag_binary | ||
+ | +autocmd +find_in_path -mouse_sysmouse +tag_old_static | ||
+ | +balloon_eval +float +mouse_urxvt -tag_any_white | ||
+ | +browse +folding +mouse_xterm +tcl | ||
+ | ++builtin_terms -footer +multi_byte +terminfo | ||
+ | +byte_offset +fork() +multi_lang +termresponse | ||
+ | +cindent +gettext -mzscheme +textobjects | ||
+ | +clientserver -hangul_input +netbeans_intg +title | ||
+ | +clipboard +iconv +path_extra +toolbar | ||
+ | +cmdline_compl +insert_expand +perl +user_commands | ||
+ | +cmdline_hist +jumplist +persistent_undo +vertsplit | ||
+ | +cmdline_info +keymap +postscript +virtualedit | ||
+ | +comments +langmap +printer +visual | ||
+ | +conceal +libcall +profile +visualextra | ||
+ | +cryptv +linebreak +python +viminfo | ||
+ | +cscope +lispindent -python3 +vreplace | ||
+ | </code> | ||
+ | |||
+ | En effet, ''+python | ||
+ | -python3'' | ||
+ | |||
+ | <code root>apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common</code> | ||
+ | |||
+ | * On récupère vim à la source et on le compile avec l'option python3 | ||
+ | |||
+ | <code root>cd ~</code> | ||
+ | <code root>hg clone https://code.google.com/p/vim/</code> | ||
+ | <code root>cd vim</code> | ||
+ | <code root>./configure --with-features=huge \ | ||
+ | --enable-multibyte \ | ||
+ | --enable-rubyinterp \ | ||
+ | --enable-python3interp vi_cv_path_python3=/usr/bin/python3.4 \ | ||
+ | --with-python-config-dir=/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu \ | ||
+ | --enable-perlinterp \ | ||
+ | --enable-luainterp \ | ||
+ | --enable-gui=gtk2 --enable-cscope --prefix=/usr</code> | ||
+ | <code root>make VIMRUNTIMEDIR=/usr/share/vim/vim74</code> | ||
+ | <code root>apt-get install checkinstall</code> | ||
+ | <code root>checkinstall</code> | ||
+ | |||
+ | * On fait de vim son éditeur par défaut | ||
+ | |||
+ | <code root>update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1</code> | ||
+ | <code root>update-alternatives --set editor /usr/bin/vim</code> | ||
+ | <code root>update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1</code> | ||
+ | <code root>update-alternatives --set vi /usr/bin/vim</code> | ||
+ | |||
+ | * On fait de vim un véritable petit IDE pour coder en python | ||
+ | |||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | |||
===== Créer des projets Django en python2 ou python3===== | ===== Créer des projets Django en python2 ou python3===== | ||