Skip to content

Instantly share code, notes, and snippets.

View ijash's full-sized avatar
🍔
Royale with Cheese

Jastria Rahmat ijash

🍔
Royale with Cheese
View GitHub Profile
@ijash
ijash / virtualenv.md
Last active October 1, 2019 08:28
Python Virtual environment Guide for Debian based Linux

Python Virtual environment Guide

For Debian based GNU/Linux

Vitrualenv

What does virtualenv do?

A lot of built in programs in Linux, OSX or POSIX compilant often rely on the system python, the executable to which, is in /usr/bin/python. Because a lot depend on it, it is not a good idea to mess with it, change it's version, or add new libraries into it.
The better way is to have the dependencies contained within it's own environment, so system python changes (due to upgrade) and other environment's changes don't affect the current project.
the steps below mostly compatible with Debian based GNU/Linux. however, it may possible on OSX and other linux distributions too. The main idea is just the same.

Steps: