Django is not updating on MacOS

Wanted to start working with Django on MacOS although I am not able to manage to install the last version of Django.

Python version is 3.8.8

Installing Django with ´pip install Django´results:

Requirement already satisfied: django in ./opt/anaconda3/lib/python3.8/site-packages (4.2.16) Requirement already satisfied: sqlparse>=0.3.1 in ./opt/anaconda3/lib/python3.8/site-packages (from django) (0.5.1) Requirement already satisfied: backports.zoneinfo in ./opt/anaconda3/lib/python3.8/site-packages (from django) (0.2.1) Requirement already satisfied: asgiref<4,>=3.6.0 in ./opt/anaconda3/lib/python3.8/site-packages (from django) (3.8.1) Requirement already satisfied: typing-extensions>=4 in ./opt/anaconda3/lib/python3.8/site-packages (from asgiref<4,>=3.6.0->django) (4.12.2)

Trying to update it with ´pip install -U Django´

Requirement already satisfied: Django in ./opt/anaconda3/lib/python3.8/site-packages (4.2.16) Collecting Django Downloading Django-4.2.17-py3-none-any.whl (8.0 MB) 8.0 MB 5.4 MB/s Requirement already satisfied: asgiref<4,>=3.6.0 in ./opt/anaconda3/lib/python3.8/site-packages (from Django) (3.8.1) Requirement already satisfied: sqlparse>=0.3.1 in ./opt/anaconda3/lib/python3.8/site-packages (from Django) (0.5.1) Requirement already satisfied: backports.zoneinfo in ./opt/anaconda3/lib/python3.8/site-packages (from Django) (0.2.1) Requirement already satisfied: typing-extensions>=4 in ./opt/anaconda3/lib/python3.8/site-packages (from asgiref<4,>=3.6.0->Django) (4.12.2) Installing collected packages: Django Attempting uninstall: Django Found existing installation: Django 4.2.16 Uninstalling Django-4.2.16: Successfully uninstalled Django-4.2.16 Successfully installed Django-4.2.17

Trying to force the version with ´python -m pip install Django==5.1.4´ results:

ERROR: Could not find a version that satisfies the requirement Django==5.1.4 ERROR: No matching distribution found for Django==5.1.4

As the documentation [Django-doc] on the Django-5.1 release says:

Django 5.1 supports Python 3.10, 3.11, 3.12, and 3.13 (as of 5.1.3). We highly recommend and only officially support the latest release of each series.

This is also specified on the PyPI page of the package [pypi.org]:

Requires: Python >=3.10

Django-4.2 is the latest version that includes Python-3.8 [Django-doc] as per documentation:

Django 4.2 supports Python 3.8, 3.9, 3.10, 3.11, and 3.12 (as of 4.2.8). We highly recommend and only officially support the latest release of each series.

Вернуться на верх