Post

PythonPython

M
Megha Sharma

Posted on 26th April 2024|141 views

0
votes

How To Use Pip Install Requirements .txt To Install All Dependencies In A Python Project?

I started working on Python recently, I was assigned with a project written in python and it requires some installation. Can anyone tell me how to use the pip install requirements.txt?

 

Answers
P
Justus Blake

Posted on 26th April 2024

Hey Megha,


 If you are working on Windows OS:

python -m pip install -U pip setuptools
python -m pip install matplotlin

If you are working on Linux OS:

Remove matplotlib==1.3.1 from requirement.txt

Try to install with sudo apt-get install python-matplotlib

Run pip install -r requirements.txt or pip3 install -r requirement.txt
Pip freeze > requirement.txt

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos