1,748 questions
1
vote
0
answers
55
views
How to remove certain compiler flags, when compiling a Python extension through setup.py?
My extension is built using python3 setup.py build, which uses all the flags Python wants to -- followed by my own, specified in extra_compile_flags.
I'd like to remove certain flags. For example:
-...
0
votes
1
answer
123
views
python setup.py develop did not run successfully
I ran the official Colab Page of GroundingDINO, but received an error while running the notebook.
Code Block
%cd {HOME}
!git clone https://github.com/IDEA-Research/GroundingDINO.git
%cd {HOME}/...
0
votes
1
answer
54
views
How to refer to source-files outside of Python module directory?
Our project builds a program from sources across multiple "sibling" subdirectories.
We'd like to make (a subset of) the same code accessible directly from Python-scripts. To that end, I ...
0
votes
1
answer
59
views
pySMT using deprecated setup.py
I have installed pySMT for Python 3.12 using PyCharm package manager with a conda environment in Ubuntu 22.04.5 LTS:
$ pip show pysmt
Name: PySMT
Version: 0.9.6
Summary: A solver-agnostic library for ...
2
votes
0
answers
228
views
ImportError: libxxx: cannot open shared object file: No such file or directory [closed]
I am trying to build a Python package that interops with C++ code. I created a PyBind11 wrapper to do the interop. I created a setup.py file following the instructions here:
from pybind11....
0
votes
0
answers
32
views
how to display progress when building from source in `pip install -e .`
maybe there is a better way to phrase this question.
I am trying to build from source of
vllm: https://github.com/vllm-project/vllm which involves building some cuda and cpp source files.
I suspect ...
0
votes
1
answer
235
views
Wheel File Not Including templates Directory and Root Files in Python Package
Background:
I am new to using the standard Python packaging tools and have typically relied on custom tooling. However, I’ve decided to get a better understanding of the packaging process, but I’m ...
0
votes
0
answers
117
views
Failed building wheel for tflite-support for Ultralytics
I'm trying to import a YOLO model from the ultralytics package and having a few issues installing tflite-support. I've tried upgrading wheels, setuptools and ran the suggested command
pip install --...
1
vote
1
answer
1k
views
pip install psycopg2-binary
When I am tryping to use pip install psycopg2-binary in Windows CMD virtual Environment, I get below error:
Collecting psycopg2-binary
Downloading psycopg2-binary-2.9.10.tar.gz (385 kB)
Preparing ...
0
votes
0
answers
434
views
"error: Unable to find a compatible Visual Studio installation" when running 'setup.py' file to compile '.pyx' file
Long story short, I wrote a function creates a .pyx file then create a setup.py file to compile the .pyx file to a .pyd file.
This is what the setup.py file looks like (self.new_file is the path to ...
2
votes
1
answer
515
views
how to let pip install show progress
In the past, I install my personal package with setup.py:
python setup.py install
Now this method is deprecated, and I can only use pip:
python -m pip install .
However, the method with setup.py ...
0
votes
0
answers
58
views
ModuleNotFoundError when trying to compile setup.py using subprocess
I want to write a python script that automatically compiles my python package using the command: python setup.py sdist bdist_wheel
My setup.py is the following:
from setuptools import setup, ...
0
votes
1
answer
228
views
Use setup.py / pyproject.toml to compile a library also in editable install
I am setting up a Python package with setuptools, together with pyproject.toml. The Python code is dependent on a C library that needs to be compiled and installed alongside the code (it's a make ...
-1
votes
1
answer
121
views
Setup.py install error - ModuleNotFoundError: No module named 'ethereum'
I'm trying to install a package using setup.py for a project. When I run the command python setup.py install, I receive a deprecation warning about using setup.py directly. Despite this, the ...
1
vote
1
answer
2k
views
"TOMLDecodeError: Cannot overwrite a value" when installing Python package with pip
I am trying to use the modules I am developing like a package using python -m pip install -e . - I ran this command inside the package directory where setup.py is at the root of the directory.
I am ...