When trying to download django through:
sudo pip uninstall django
However, this downloads the new version of django 1.5. How would I force download version 1.4 through pip? Here is what I get when trying to install:
imac9:site-packages pdadmin$ sudo pip install django==1.4.1
Downloading/unpacking django==1.4.1
Running setup.py egg_info for package django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
Requested django==1.4.1, but installing version 1.5.1
Installing collected packages: django
Found existing installation: Django 1.5.1
Django can be installed easily using pip . In the command prompt, execute the following command: pip install django . This will download and install Django. After the installation has completed, you can verify your Django installation by executing django-admin --version in the command prompt.
Python compatibilityDjango 3.0 supports Python 3.6, 3.7, 3.8, and 3.9 (as of 3.0. 11). We highly recommend and only officially support the latest release of each series.
Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process. Voila!
This can be done by using this command
sudo pip install django==1.4 #or any desired version.
should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With