Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you install python package without dependencies

Tags:

python

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?

like image 256
user1471980 Avatar asked May 27 '15 20:05

user1471980


People also ask

How to install packages in Python?

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

How to install any Python library without PIP command?

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.

How can I download a package without installing it?

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!

How to install all packages that are not meeting dependency?

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


1 Answers

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
like image 65
skyline75489 Avatar answered Oct 03 '22 04:10

skyline75489