How to install Django with a specific version
Published in
Jul 21, 2021
Hi, in this article I will show simple commands to install Django with a specific version. and run commands inside a single terminal because every command requires virtual should be active.
Create a virtual environment
- I used python 3.8 you can use your required python interpreter version.
python3.8 -m venv venv
2. Activate venv virtual environment.
source venv/bin/activate
Install Django
- Now you can install Django by specifying the version.
pip3 install django==2.2
or
pip3 install django==3.2 # your required version
2. Create a django project.
django-admin startproject mysite
3. Run the server.
python manage.py runserver
Conclusion
I hope you find this article is useful.