Install Django with pip

**

Install Django with pip

**
For the installation of Django, it is recommended to use the pip package management system.
Run the following command at the shell prompt and install Django using pip.

pip install Django==3.1.2  

You can also choose other versions. Note: The methods in different versions will change

After installation, Django will be installed in the site-packages/ directory in the virtual environment.
Check whether Django has been installed successfully. For this, you can run python on the terminal, import Django and check the version

>>> import django
>>> django.get_version()
'3.1.2'

Note: Django can be installed in a variety of ways, readers can visit https://docs.djangoproject.com/en/3.0/topics/install/, to understand the complete installation process.
In addition, some software comes with Django, no readers are required Install by yourself.
For example: pyCharm Professional Edition, VSCode and so on.

Guess you like

Origin blog.csdn.net/Erudite_x/article/details/112202777