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?
Requirements for Installing Packages Ensure you can run Python from the command line Ensure you can run pip from the command line Ensure pip, setuptools, and wheel are up to date Optionally, create a virtual environment Creating Virtual Environments Use pip for Installing Installing from PyPI Source Distributions vs Wheels Upgrading packages
To install any python library without pip command, we can download the package from pypi.org in and run it's setup.py file using python. This will install the package on your system.
You can use pip, with the --download option, which will download the main package and its dependancies, without installing them. See pip documentation --download for fast & local installs. You can use pip on Windows with cygwin for example. Thanks for contributing an answer to Stack Overflow!
Find the list of packages that are not meeting dependency. Download the .deb file with apt-get download. Then use You have the question if you want to install all packages that are mentioned.. if there is a package you do not want to have installed like mysql-server because it is offloaded to another server insted of answering y/n answer with
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With