Questions tagged [install-requires]

“install_requires” should be used to specify what dependencies a project minimally needs to run. When the project is installed by pip, this is the specification that is used to install its dependencies.

Source: https://packaging.python.org/tutorials/distributing-packages/#install-requires

22 questions
0
votes
2 answers

why pip install do not download the depended package which be defind in setup.py?

my python project is packaged by setuptools,this is my setup.opt: [metadata] name = totems_pycommon version = 1.0.0 #long_description = file: README.rst, CHANGELOG.rst, LICENSE.rst include_package_data = True # 依赖 install_requires= …
0
votes
1 answer

Packages listed in install_requires ignored when installed with pip

It is was probably asked and answered somewhere, but I searched a lot and I didn't found where. Sorry if duplicated. I have a project (https://github.com/PyFPGA/openflow) which depends on pyyaml: setup( ..., …
RAM
  • 65
  • 4
  • 11
0
votes
1 answer

install_requires hierarchy: ContextualVersionConflict

Let's say I have a main_package. In it's setup.cfg it has: install_requires =       importlib_metadata; python_version < "3.8"      not_main_package>= 15.1 Also I have a not_main_package 16.0. In it's setup.cfg it has: install_requires =     …
techkuz
  • 3,608
  • 5
  • 34
  • 62
0
votes
1 answer

Python setup.py clone the subfolder and use it as source code

The Python project intensively uses common declaration from another repository. from *another_repository*.common import *class1*, *class2*. How to properly integrate such folder within own repository, without copying it itself into the current…
tsybaya
  • 117
  • 1
  • 7
0
votes
1 answer

dh_python2 versioned dependencies from setup.py

I am building a .deb package of python module with dpkg-buildpackage. in setup.py i have specified install_requires=['othermodule>=2.0'] but the generated control file does not specify version. Depends: python (>= 2.7), othermodule, dh_python is…
Magen
  • 33
  • 1
  • 1
  • 7
0
votes
0 answers

Installing matplotlib through setuptools install_requires

I have been trying to install matplotlib through install_requires and it has been failing with error: unexpected html page found... When I just try to install it regularly through pip it seems to work fine. Does anyone know how to fix this kind of…
Jason
  • 103
  • 1
  • 1
  • 6
0
votes
1 answer

How to format Install requires line for json

I have an info.json file with the line: "install_requires" : {"" : []}, Assuming that this is where I put packages that my program relies on, how would I format it if I want it to rely on python-redmine version 0.8.3 Would it possibly…
user1102901
  • 565
  • 1
  • 4
  • 12
1
2