02 – SETTING UP THE ENVIRONMENT – INVOICE MANAGEMENT SYSTEM

Spread the love

1. Installing Python3

This application will be developed in python 3. The first step is to install python3 if not yet installed.

sudo apt install python3

2. Install pip3

The next step is to install a package management system called PIP. You will need PIP to install and manage software packages written in Python. I will be installing PIP for python 3. This is usually called PIP3 meaning PIP for python 3

sudo apt install python3-pip

3. Install Virtual environment for python3

The next step is to install virtual environment that acts as a sandbox for your python applications. This allows multiple applications with different requirements to run on the same machine.

pip3 install virtualenv

4. Create a virtual environment for Python3

Now create the environment where the application we will be developing in this tutorial will be configured to run

virtualenv -p python3 venv

Or use python3’s way of creating virtual environment

python3 -m venv venv

5. Activate the Virtual Environment

Before you can use the virtual environment, you will need to activate it.

cd venv
source bin/activate

6. Install Django in the virtual environment

Since the environment is now activated, all the pip3 commands (e.g. pip3 install, pip3 uninstall) will be confined to the environment.

pip3 install django

7. Confirm that Django is installed properly

pip3 freeze

You should see the installed packages in the list including Django


Spread the love

About the author

arbadjie

Hi, I'm Abdourahman Badjie, an aspiring developer with obsession for anything coding and networking. This blog is dedicated to helping people learn to develop web applications using django framework.

View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *