How to use requirements.txt to install all dependencies in a python project
If you are using Linux OS:
- Remove
matplotlib==1.3.1
fromrequirements.txt
- Try to install with
sudo apt-get install python-matplotlib
- Run
pip install -r requirements.txt
(Python 2), orpip3 install -r requirements.txt
(Python 3) pip freeze > requirements.txt
If you are using Windows OS:
python -m pip install -U pip setuptools
python -m pip install matplotlib
pip install -r requirements.txt
for python 2.x
pip3 install -r requirements.txt
for python 3.x
(in case multiple versions are installed)