setuptools Questions

3

Solved

I'm working on a package P with setuptools and pkg_resources, where the package, after installation, needs to download some binaries and place them in a dedicated directory (P/bin/). I'm trying to...
Vineyard asked 23/3, 2016 at 19:39

2

I'm trying to install a requirements.txt file in Docker, and I make it about 30 packages in when I get this error when trying to install importlib: Can not execute setup.py since setuptools is not ...
Revolutionize asked 10/6, 2022 at 8:0

2

Solved

I'm distributing a module which can be imported and used as a library. It also comes with an executable—installed via console_scripts—for people to use. That executable can also be started as a sy...
Speechless asked 18/5, 2020 at 8:29

3

Solved

How does one pip install with all extras? I'm aware that doing something like: pip install -e .[docs,tests,others] is an option. But, is it possible to do something like: pip install -e .[all] Th...
Forehead asked 4/11, 2020 at 18:12

6

Solved

Some packages give errors when I try to install them using pip install. This is the error when I try to install chatterbot, but some other packages give this error as well: pip install chatterbot C...
Quinquefid asked 16/8, 2022 at 18:17

4

Is it possible to specify (editable) source dependencies in setup.py that are known to reside on the local file system? Consider the following directory structure, all of which lives in a single V...
Maddening asked 19/10, 2012 at 21:1

4

I have a poetry project that is not using setuptools [tool.poetry.dependencies] python = ">=3.9,<3.11" opencv-python = "^4.7.0.68" tensorflow-macos = "^2.11.0" t...
Dogoodism asked 1/2, 2023 at 9:9

3

Solved

Can conda install be used to install source-distributions (i.e. non-archived import packages that have a setup.py)?
Mullion asked 23/11, 2016 at 5:10

9

Solved

I have two pure python projects in PyCharm 3.4.1 Professional Edition. The first one, let's call it p (like package), is structured as a setuptools package (i.e. with setup.py, all requirements etc...
Seleucid asked 4/10, 2014 at 13:36

4

I'm trying to install a python-package defined by pryproject.toml and setup.cfg file. I was able to install the package using `pip install .`` in Ubuntu 20.04.1 LTS. But I get the following error w...
Halt asked 3/5, 2023 at 1:44

2

Solved

The Python Packaging Tutorial recommends that "Static metadata (setup.cfg) should be preferred. Dynamic metadata (setup.py) should be used only as an escape hatch when absolutely necessary. se...
Faustino asked 6/8, 2021 at 7:40

4

Solved

I just got a MacBook, cloned the project I was working on, and went to set up the python environment. After creating the environment, I updated pip and tried installing the necessary libraries usin...
Stainless asked 17/7, 2023 at 19:13

1

Solved

I'm working on a Python project with a setup.py that has something like this1: setup( cmdclass={"build_ext": my_build_ext}, ext_modules=[ Extension("A", ["a.c", &qu...
Herzel asked 24/4, 2024 at 20:51

4

Solved

I try my best to move from a setup.py managed lib to a pure pyproject.toml one. I have the following folder structure: tests └── <files> docs └── <files> sepal_ui └── <files> pypr...
Tripos asked 8/2, 2023 at 15:19

16

Solved

I've just uploaded a new version of my package to PyPi (1.2.1.0-r4): I can download the egg file and install it with easy_install, and the version checks out correctly. But when I try to install us...
Retene asked 31/1, 2013 at 1:46

3

Solved

When I try to install from a .tar.gz package, while making warnings into errors: python -W error -m pip install /some/path/nspace.pkga-0.1.0.tar.gz I get this error: ERROR: Exception: Traceback (m...
Faldstool asked 18/4, 2023 at 10:53

6

Solved

I've installed scikit-fuzzy but when I import skfuzzy as fuzz I get an error ModuleNotFoundError: No module named 'distutils'" I already tried to pip uninstall distutils and got this output N...
Satiety asked 5/10, 2023 at 1:54

3

Solved

Python 3.7.2 Pip 18.1 setuptools 40.7.2 Windows-10-10.0.14393-SP0 I've seen people having the No module named 'distutils issue on Linux/Ubuntu (for example, here and here). The reported sol...
Experienced asked 1/2, 2019 at 20:8

3

We have multiple python projects, and are considering converting them to use pyproject.toml instead of setup.py. Is there a simple way to automate this?
Joly asked 1/7, 2022 at 16:13

1

I have Python 3.8.10 64bit(win10) installed. I'm using it with VSC. Also for c/c++ I have installed mingw64. Mingw64 installs a python version to, dont know why and for what, but it is already maki...
Staff asked 23/3, 2022 at 9:23

4

Solved

I am trying to migrate my package from setup.py to pyproject.toml and I am not sure how to do the dynamic versioning in the same way as before. Currently I can pass the development version using en...
Rintoul asked 31/12, 2022 at 9:16

4

Solved

My request seems unorthodox, but I would like to quickly package an old repository, consisting mostly of python executable scripts. The problem is that those scripts were not designed as modules, ...
Binkley asked 4/1, 2020 at 15:8

2

Should I be using only pyproject.toml or use it with setup.py and setup.cfg? Or perhaps some other combination of them. I can't find any definitive answer to this question so I'd be pleased i...
Yea asked 10/8, 2022 at 16:54

6

I am trying to make a python package which I want to install using pip install . locally. The package name is listed in pip freeze but import <package> results in an error No module named &lt...
Garderobe asked 29/5, 2018 at 13:8

6

Solved

I am creating a setup.py to distribute my application. This application has a number of dependencies which can be installed via pip, it also has some custom dependencies which can not be installed ...
Carangid asked 27/2, 2016 at 9:53

© 2022 - 2025 — McMap. All rights reserved.