Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 1.21 KB

File metadata and controls

68 lines (48 loc) · 1.21 KB

Creating your Virtual Env

Create a Virtual Environment... WHY?

You want to save your packages and be able to transfer them over to 
other machines

Here's how to do it:

  1. Open a command line
  2. Go into this folder
  3. Look for an .env folder using ls
python -m venv env

Virtual Env Configuration

Activating your virtual env

. ./env/bin/activate

Deactivating your virtual env

deactivate

Package Management

Install packages from a requirement.txt file

pip install -r requirements.txt

x

Installing Individual Packages

You can find package names at the following website pypi

** Warning don't just go installing any packages. Please google/reddit packages before installing **

pip install <package-name>
pip install pandas
pip install requests

Saving your packages

Whenever you add new packages using pip install you need to save your packages using the following in the terminal:

pip freeze > requirements.txt

Setting up this project on a new machine

A shortcut has been created for you to setup quickly. Run the following:

./bootstrap