Skip to content

Instantly share code, notes, and snippets.

@pokk
Last active April 5, 2017 02:09
Show Gist options
  • Save pokk/80d95b186639b4f42ea1efce7796ccf0 to your computer and use it in GitHub Desktop.
Save pokk/80d95b186639b4f42ea1efce7796ccf0 to your computer and use it in GitHub Desktop.
add requirements external library in new envrionment

Introduction

Add necessary requirement of external libraries in your Python project automatically by one instruction.

You can put your necessary libraries as like requirements.txt.

How to use

Open to your project directory then put as below:

pip3 install -r requirements.txt

Of course this instruction is for Python3 obviously, if you're using Python2.7, you just change _pip3_ to _pip_.

pip install -r requirements.txt

requirements.txt

Prepare a *requirements.txt* and content will be as below.

lxml==3.6.0
python-docx==0.8.6
rx==1.5.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment