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 in Python by ana1504.k
• 7,870 points
193 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 by SDeb
• 13,180 points

Related Questions In Python

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
90 views
0 votes
1 answer

Why there is no do while loop in python

There is no do...while loop because there ...READ MORE

answered Aug 6, 2018 in Python by Priyaj
• 56,920 points
169 views
+1 vote
2 answers

How to use the pass statement in Python

In Python programming, pass is a null statement. The ...READ MORE

answered Apr 5 in Python by anonymous
67 views
+2 votes
1 answer

How to install pip in windows?

Step 1:  Open the following link and go to ...READ MORE

answered Nov 27, 2018 in Python by Priyaj
• 56,920 points
2,903 views
+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 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 343 views
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,180 points
304 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,180 points
44 views