[PYTHON] CentOS8 --Install --Django

Install without creating a virtual environment

Django installation

sudo pip3 install django

WARNING: Running pip install with root privileges is generally not a good idea.
Try `pip3 install --user` instead.
Collecting Django
 (Omitted)
Successfully installed Django-3.0 asgiref-3.2.3 sqlparse-0.3.0

Installation confirmation

 // Start Python
python

 // Enter with the interpreter
>>> import django
>>> print(django.get_version())
3.0

――Actually, it seems better to create a virtual environment and install packages in it. ――By doing so, it seems that the environment for each package installation can be made independent. --So, the recommended procedure is as follows.

  1. Python installation
  2. Virtual environment construction
  3. Django installation

Uninstall (if needed)

sudo pip3 uninstall django

Create and install a virtual environment

Create virtual environment

 // Directory name: django (Actually, there is a story that the directory name and venv are good)
python -m venv django

Activate (enable virtual environment)

source venv/bin/activate

Django installation

(django) [**********]$ pip3 install django

Installation confirmation

 // Package confirmation
(django) [**********]$ pip3 freeze
asgiref==3.2.3
Django==3.0
pytz==2019.3
sqlparse==0.3.0

 // Start Python
(django) [**********]$ python
Python 3.6.8 (default, Oct  7 2019, 17:58:22) 
[GCC 8.2.1 20180905 (Red Hat 8.2.1-3)] on linux
Type "help", "copyright", "credits" or "license" for more information.

 // Enter with the interpreter
>>> import django
>>> print(django.get_version())
3.0

Unactivate

(django) [**********]$ deactivate

Recommended Posts

CentOS8 --Install --Django
Install Django
Install Python 3.7 and Django 3.0 (CentOS)
CentOS8 --Play --Django
CentOS8 --Install --Python3
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install awscli on centos7
Install Chainer on CentOS 6.7
Install CentOS7 VirtualBox Guest Additons
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Django
Install Chrome on CentOS 7 series
Install Django on your Mac
Install Python 3.8 on CentOS 8 (AppStream)
Steps to install MySQL 8.0 on CentOS 8.1
raspberry pi 4 centos7 install on docker
Steps to install VirtualBox on CentOS
Install java (Oracle JDK14) on CentOS7
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
Install pip on CentOS7. Also iPython.
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Install Python on CentOS using Pyenv
Install Python framework django using pip
How to install Maven on CentOS
Study Note 9_Install Jenkins on CentOS7
Install Python on CentOS using pyenv
Install Django in a pipenv virtual environment
django update
Django note 4
Install pytorch
Install Activiti 6
django search
Django installation
[Django] Install radio buttons and shape markup
emacs-jedi install
Enable sar command on CentOS (install sysstat)
ArcoLinux install
Django Summary
install python
Django test
Install virtualenv
Install mojimoji
Install Scipy
Install Memo
Django # 2 (template)
Django Note 5
Django hands-on
Touch django
django notes
Django Summary
Django basics
CentOS8 + Apache2.4 + pyenv + mod_wsgi + Django project deployment
CentOS 6.4 with Python 2.7.3 with Apache with mod_wsgi and Django
Django Shoho
Install Qiskit