Modules Python : installation

publicité
Modules Python : installation
Yves Guidet
June 6, 2014
Yves Guidet
Modules Python : installation
Modules Python : installation
Certains modules ne sont pas dans la distribution standard :
yves@bella:installModule$ python
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more in
>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named matplotlib
Source : https://docs.python.org/2/install/
Yves Guidet
Modules Python : installation
trivial installation
I
rpm, deb
I
pas de
setup
Sinon on peut utiliser pip http://bit.ly/1pKiN0y.
Yves Guidet
Modules Python : installation
un exemple : matplotlib
yves@bella:installModule$ apt-cache search matplotlib
python-matplotlib - Python based plotting system in a style
python-matplotlib-data - Python based plotting system (data
...
Yves Guidet
Modules Python : installation
targz
yves@zette14:tmp> ll matplotlib-1.3.1.tar.gz
*rw-r--r-- 1 yves users 42163182 avril 28 12:41 matplotlib-
Yves Guidet
Modules Python : installation
et sous windows ?
Pip fonctionne sous MSWindows.
Pour en savoir plus, chercher eggs dans le support.
Yves Guidet
Modules Python : installation
Téléchargement