Pass --no-deps in PIP requirements txt

0 votes

I need to pass a flag of --no-deps to one of my packages in my requirements.txt file to ignore the dependencies of a package. I've tried putting it above, below, before, and after the package to no avail. I can do it by itself no problem but not within a requirements.txt file

pip install <package> --no-deps

requirements.txt

<package> --no-deps

Can anyone help me with this?

Jun 25, 2019 in Python by ana1504.k
• 7,910 points
6,291 views

1 answer to this question.

0 votes
There is no such option yet for this.

The best you can do is freeze everything from your master environment, and use "--no-deps" when you pip install. This is OK since dependencies will be frozen already.

Hope this helps!
answered Jun 25, 2019 by SDeb
• 13,300 points

Related Questions In Python

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Install pip in Python 3.4

Don't worry! Python already comes in default ...READ MORE

answered May 1, 2018 in Python by aayushi
• 750 points
3,426 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,441 views
0 votes
1 answer
0 votes
1 answer

Indentation of Python in Notepad++

To indent the block, select the entire ...READ MORE

answered Sep 18, 2018 in Python by SDeb
• 13,300 points
2,351 views
0 votes
1 answer

Print C format in Python

For printf- style formatting and special case ...READ MORE

answered Sep 18, 2018 in Python by SDeb
• 13,300 points
1,007 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP