15

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,383
  • 47
  • 132
  • 225

1 Answers1

27

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
skyline75489
  • 15,342
  • 7
  • 46
  • 60
  • 4
    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