Un blog avant d'écrire le support.
Répertoire : /home/yves/2011/web/frameworks/Django
Machine : bella (?)
Un œil sur une manip plus ancienne :
Allez, on y va :
yves@bella:html$ pip freeze|grep -i django yves@bella:html$ python -m django /usr/bin/python: No module named django
yves@bella:html$ sudo !!
sudo pip install django
The directory '/media/home/yves/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/yves/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting django
Downloading https://files.pythonhosted.org/packages/25/4d/c8228419346a0e84aec202a43e181afc6572b861d38f8a0306dbce6abef0/Django-1.11.13-py2.py3-none-any.whl (6.9MB)
100% |████████████████████████████████| 7.0MB 2.3MB/s
Requirement already satisfied: pytz in /usr/local/lib/python2.7/dist-packages (from django) (2017.2)
Installing collected packages: django
Successfully installed django-1.11.13
Un Tuto.
On y trouve une info sur la façon d'obtenir la version :
yves@bella:html$ python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.get_version() '1.11.13'
Aussi :
yves@bella:html$ pip freeze|grep -i django Django==1.11.13
à suivre
© Yves Guidet jeudi 9 juillet 2020, 09:48:17 (UTC+0200) (bella ubuntu, site printemps) yves.guidet@gmail.com