20

I am trying to install a python module without dependencies.

I run:

python setup.py install

but this install dependencies, any ideas how could do this?

user1471980
  • 10,127
  • 48
  • 136
  • 235

1 Answers1

35

If you are using setup.py, you could use:

python setup.py develop --no-deps

If you're using pip, try:

pip install --no-deps
ljk321
  • 16,242
  • 7
  • 48
  • 60
  • 5
    Why is `--no-deps` not recognised in `setup.py install`? – CMCDragonkai Jul 18 '18 at 06:59
  • 1
    Please be aware that **develop and install are different** and have their own purposes. Refer [this](https://stackoverflow.com/questions/19048732/python-setup-py-develop-vs-install) for more info – Rohit Taneja Jan 02 '19 at 18:08