📙
Python Programming
  • Python Programming
  • Installation and Setup
  • Part 1: Basics
    • Variables
      • Primitive Data Types
      • Secondary Data Types
    • Control Flow and Loop
    • Functions
    • Error Handling
    • Decorators
    • Constructor
    • Built-in Functions and Modules
    • Pythonic Code
    • Miscellaneous Functionalities
    • Understanding Checkpoint I
    • Python Problem Practice I
      • Solutions
  • Part 2: Level Up
    • Real Life Application I
    • Real Life Application II
    • OOP Concepts
    • Creating Library
    • Real Life Application III
  • Processing Related
    • Parallel Processing
    • Oreilly - High Performance Python
    • Memory Management
      • Memory Leak
      • String
      • Array
      • Dictionary
    • Ubuntu CPU and RAM
    • Time and Space Complexity
  • Data Structure
    • Data Structure Overview
    • Array
    • Stack
    • Queue
    • LinkedList
    • Hash-table and Hash-map
    • Recursion
    • Binary Tree
    • Heap Data Structure
    • Graphs
      • Python Graph Visualisation
    • Dynamic Programming
    • Problem Solving Techniques
    • Additional topics
Powered by GitBook
On this page

Installation and Setup

PreviousPython ProgrammingNextVariables

Last updated 4 years ago

Was this helpful?

CtrlK
  • Installation Overview
  • Creating a Python Virtual Environment

Was this helpful?

Installation Overview

There are three options to start working on python coding

  1. Use the online editor (Google Collab or online Jupyter Notebook)

  2. Using docker image of Jupyter Notebook

  3. Install Jupyter Notebook in local

Jupyter Notebook is good for testing only, application needs to be created using a text editor (Visual Studio Code is my preferred text editor)

Hint: Best practice to use a virtual environment while working with applications in local

Creating a Python Virtual Environment

  • Discussing for Linux or Ubuntu like operating systems only

  • Create virtual environment (For 3.7 version and virtual environment name myenv)

activate virtual env

Now, use this virtual environment for running all python related code (as an application or initiating Jupyter Notebook and working with it)

sudo apt-get install python-virtualenv
virtualenv --python=python3.7 myvenv
source myvenv/bin/activate