Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
70 views

How to specify interpreter, platform, and ABI for cross-platform Python wheel installation with uv install?

I am trying to download and install Python wheel packages into a uv virtual environment for a non-native (cross-platform) target environment. When using pip, I would typically use flags like --...
Vojtěch Jiruš's user avatar
1 vote
1 answer
99 views

How to deploy a file to the system from a wheel?

For given project: . ├── demo │ └── __init__.py ├── demo.bin └── setup.py demo/__init__.py: if __name__ == "__main__": print("You're in demo") demo.bin: #!/bin/bash echo &...
bux's user avatar
  • 7,711
0 votes
1 answer
47 views

Unable to authorize databricks from Azure Devops Stage

I'm trying to build a devops pipeline that allows to upload a python wheel file to my databricks volume. However I keep getting the error : "Error: Authorization failed. Your token may be expired ...
Pranav ramachandran's user avatar
0 votes
0 answers
98 views

Create a Pip Wheel for OpenCV Built from Source to Prevent Overwriting with Library Dependencies

I have a Dockerfile that builds OpenCV from source with cuda. The build itself succeeds, but pip doesn’t recognize this custom installation. As a result, when I later install a Python package that ...
M.Akyuzlu's user avatar
  • 335
1 vote
1 answer
407 views

Installing Custom Python Wheel Packages in a Databricks Serverless Notebook

I have some custom functions and classes that I packaged as a Python wheel. I want to use them in my python notebook (with a .py extension) that runs on a serverless Databricks cluster. I have read ...
Alexis Kan's user avatar
0 votes
0 answers
97 views

PEX Build Fails Due to Missing manylinux_2_17 or manylinux_2_27 Wheels for numpy and pandas on Python 3.12

I’m building a PEX file for a Python 3.12 project (system-monitor) targeting Amazon Linux 2023 (glibc 2.34) on both x86_64 and aarch64 architectures. I’m using PEX with --platform options to enforce ...
Sarathy Velmurugan's user avatar
2 votes
1 answer
81 views

pip install using a separate build machine

I have two same-architecture Linux boxes running identical versions of pypy, installed via pyenv. Consider one a "production" machine and one a "build" machine, such that the ...
mysteryegg's user avatar
1 vote
1 answer
151 views

How to use pyproject.toml with python-3.6?

I created my simple Python-module. The pyproject.toml reads: [project] authors = [ {name = "Me Me", email = "[email protected]"} ] name = "Mysms" description = "...
Mikhail T.'s user avatar
  • 4,246
0 votes
0 answers
63 views

Can I specify a different directory for transient files, when invoking Python build-module?

I currently build my simple Python module with a command like: python3 -m build --wheel --outdir /tmp . This creates the /tmp/mypackage-0.1-py3-none-any.whl -- as one would expect. However, it also ...
Mikhail T.'s user avatar
  • 4,246
0 votes
0 answers
75 views

How to freeze Python build tools for repeatable builds?

TL;DR: When pip install builds and installs wheels, how do I determine which versions of build tool packages (e.g. Cython) it used? How do I force it to use the same versions of those packages in the ...
macdjord's user avatar
  • 635
1 vote
1 answer
108 views

Python builds wheel file with restricted permissions/access list in Windows

I'm building a python wheel file using a toml file on both Linux and Windows. Linux seems to work ok, but on Windows (using clion/cmake) the wheel file is getting built with a very restricted access ...
Fred's user avatar
  • 23
0 votes
2 answers
73 views

Locally installed Python wheel throwing ModuleNotFoundError

Recently I've been trying to learn a bit more about how to build python modules and share code amongst my personal projects. This is my first attempt and I'm running into errors and I'm having a tough ...
Staros's user avatar
  • 3,292
2 votes
2 answers
501 views

Fails new wheel version [closed]

10 hours ago Python Packaging Authority release wheel of version 0.46.1. It fails in our pipeline. Do you have same problem? It returns this error: error: invalid command 'bdist_wheel' Therefore, we ...
Jan Zhouf's user avatar
1 vote
0 answers
145 views

How to preserve autocompletion and docstrings when building a .whl with Nuitka?

I'm building a .whl package for a Python library using Nuitka. To generate the wheel, I use the following command: python setup.py bdist_nuitka The wheel is created successfully, and after installing ...
Rorschy's user avatar
  • 27
0 votes
1 answer
111 views

Polars wheel file

The provided whl files for polars library are tagged as abi3. I am working with specific setup that needs ABI tag to be cp39. I tried unpacking and packing again while changing the tag but still not ...
RGI's user avatar
  • 21
0 votes
1 answer
982 views

How to compile FlashAttention wheels faster?

Currently the compilation of the Python wheel for the FlashAttention 2 (Dao-AILab/flash-attention) Python package takes several hours, as reported by multiple users on GitHub (see e.g. this issue). ...
mirekphd's user avatar
  • 7,231
2 votes
2 answers
151 views

Can't install matplotlib in Python 3.6

I've created a Python 3.6 environment in my WSL Ubuntu 22.04 operating system using virtualenv -p python3.6 <my_env>. I need to download some packages, particularly matplotlib, but I'm having ...
Andrea Barone's user avatar
0 votes
0 answers
157 views

Pytsk3 installed with .whl file does not work

I tried to use pytsk3 in my python project to extract files from .img files. Pytsk3 (https://github.com/py4n6/pytsk) is a python binding for the Sleuth Kit. It works fine on my laptop (windows 11 pro ...
user29792845's user avatar
0 votes
1 answer
292 views

Failed building wheel for pyarrow

I'm using Python 3.9.18 on my Mac 14.0.6. I tried to install skimpy by running !pip install skimpy. However, I kept getting the same error "ERROR: Could not build wheels for pyarrow, which is ...
Ada Shi's user avatar
  • 11
0 votes
0 answers
93 views

Buiding wheels in github actions using a dependency on other local wheels

Context: I have a first private github repository with a release containing one python wheel. In a second public repository I have a python module depending on this wheel, I am using github actions to ...
Maxi mini's user avatar
0 votes
0 answers
223 views

Which python pillow wheel for my system? Can't tell

I tried to install Python pillow via pip and it failed to create a wheel. I'm trying to guess which downloadable wheel I can use, but the first four I tried give me: C:\Users\dcorn\Downloads>python ...
EmptySetBlues's user avatar
1 vote
0 answers
83 views

How do I implement 2 different builds for my python project? One for uploading to pypi and another for local usage and mypycify optimizations

I have built a basic python project. The project at its core is using a toml file to store all the configurations and build rules (see below): [project] authors = [{ name = "name", email = &...
Death_by_Ch0colate's user avatar
0 votes
1 answer
249 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 ...
avalon20's user avatar
  • 199
0 votes
0 answers
155 views

Is egg-info still the recommended way to manage python packages installed in editable mode?

I am installing local python package in editable mode, using a pyproject.toml file to configure it. The pyproject.toml looks like this: [build-system] requires = ["setuptools", "...
Ben Jeffrey's user avatar
  • 1,043
1 vote
2 answers
3k views

error: command '/usr/bin/g++' failed with exit code 1

I have the error "error: command '/usr/bin/g++' failed with exit code 1" when trying to install python package QuTip via Juyter notebook: and below "error: command '/usr/bin/g++' ...
Nigel1's user avatar
  • 139
1 vote
2 answers
742 views

Failed building wheel for pillow-heif with error Pointer is missing a nullability type specifier

While trying to install Wagtail on MacOS Monterey with pip the build fails with many errors like these: /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/stdlib.h:134:25: error: ...
Marie's user avatar
  • 21
0 votes
1 answer
217 views

How to switch off automatic wheel building in databricks asset bundle python wheel task

I have the following databricks asset bundle job defintion: - task_key: test-model-from-wheel python_wheel_task: entry_point: run # Entry point of the wheel ...
PlagTag's user avatar
  • 6,499
0 votes
1 answer
960 views

Generate and Deploy Wheel file to the Databricks Cluster from VS Code

I have a scenario where I need to generate a versioned Wheel file and upload it automatically to a Databricks cluster using VS Code, without creating workflows or jobs like those in Databricks Bundles....
question.it's user avatar
  • 3,018
3 votes
1 answer
80 views

Build a wheel and Install package version depending on OS

I have several python packages that need to be installed on various os/environments. These packages have dependencies and some of them like Polars needs a different package depending on the OS, for ...
FiReTiTi's user avatar
  • 5,979
3 votes
1 answer
96 views

Python wheel entry point not working as expected on Windows

I'm tryring to setup a python wheel for my testrunner helper script to make it easyly acessible from everywhere on my Windows machine. Therefore I configure a console entry point in my setup.py. I can ...
Jonny Schubert's user avatar
0 votes
3 answers
117 views

Why is pyproject-build.exe not on PATH in Anaconda, and how can I ensure both .tar.gz and .whl distributions are created with py -m build?

I am trying to package a Python project using py -m build within an Anaconda environment. However, I noticed that only the .tar.gz source distribution is being created, and the .whl (wheel) ...
Kate Crawford's user avatar
2 votes
2 answers
410 views

picframe Install on Raspberry Pi 3B, Bullseye OS, pi-heif wheel fails to build

Novice Raspberry Pi user here trying to build a digital picture frame. The problem I'm running into is the pi-heif wheel won't successfully build. I'm using Python3.11.2, the latest libheif library is ...
Sandra Serbu's user avatar
0 votes
0 answers
220 views

How to cross-compile Rust-based Python wheel

I want to create a Python wheel that will run on both Windows and Linux (x86_64 and possibly ARM). I want to write the data processing code in Rust and have Python call the Rust code, so I am going to ...
John's user avatar
  • 12.1k
1 vote
1 answer
144 views

Trying to install package: ERROR filename.whl is not a supported wheel on this platform

I am trying to install a package for Python, I think I have the right .whl but I'm not good at this. I'm trying to install pycryptodome-3.21.0-pp310-pypy310_pp73-win_amd64.whl which is saved on my ...
Dot Rain's user avatar
1 vote
0 answers
48 views

Unsupported platform tag manylinux_2_31_riscv64

When trying to upload a wheel distribution to PyPI, all other architectures were accepted, except for manylinux_2_31_riscv64. I could not find any documentation on how to submit packages targeting the ...
Hykilpikonna's user avatar
  • 2,241
1 vote
1 answer
19k views

Identify the full path to xxx/library/bin in python

I have an application that depends on intel-fortran-rt When installed via pip install intel-fortran-rt==2021.3.0, the intel fortran runtime dlls are copied into xxx\Library\bin The problem is to ...
Mads M Pedersen's user avatar
0 votes
1 answer
162 views

How to include a directory with compiled binaries in a Python wheel using pyproject.toml?

I want to create a Python wheel that contains a single Python module (script.py) and a directory of compiled C++ binaries. Below is my project structure: root/ │ ├── bin/ │ ├── binary1 │ ├── ...
sherlock85's user avatar
1 vote
0 answers
106 views

Databricks logging for a wheel task

I'm trying to run a Databricks wheel task and print some logs. I created a logging utility: # log_utils.py import sys import logging from typing import Optional def setup_logging( name: Optional[...
Giacomo Sachs's user avatar
0 votes
0 answers
108 views

How to check, the metadat of a WHL file (python library package) in order to know what it wants for : platform, interpreter and version

I know, you'd ask why I would want to this, so I have a WHL file to install on windows with a title like : nameAndVersion-cp38-cp38-win_amd64.whl Sadly, it does not install the result is : Error "...
Mathieu Bragard's user avatar
0 votes
0 answers
55 views

How should I include a 3rd party program into python platform-wheels?

There's a 3rd party program (VeraCrypt) that'd I'd like to use in python, so I'm looking at creating a python package around it. I want to make it so if you download the package, it will "just ...
Cameron Showalter's user avatar
-1 votes
2 answers
332 views

package python module with pybind11 extension that depends on shared libraries

I'm using pybind11 to create cross platform bindings to the c++ library named piper-phonemize. The library depends on 2 native libraries - onnxruntime and espeak-ng. There's cmake file which produce ...
anonymous's user avatar
2 votes
1 answer
726 views

Failed building wheel for tflite-support

Using pip install tflite-support, this is the full output and error message: Collecting tflite-support Using cached tflite-support-0.1.0a1.tar.gz (390 kB) Preparing metadata (setup.py) ... done ...
Renz_Dal's user avatar
0 votes
1 answer
6k views

ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (fisher)

I am trying to install fisher in Python using pip install fisher but I keep getting the following error: Collecting fisher Using cached fisher-0.1.14.tar.gz (22 kB) Installing build ...
Pernille Rainer's user avatar
1 vote
0 answers
465 views

which build-system shall be used with pyproject.toml to install system packages (Linux only, no windows)

I want to transition existing python 2.7 code base (2 .py files, nothing big) from 10+ years ago to python3 and more modern level of project handling. Python2 to python3 steps are out of scope here. ...
silpol's user avatar
  • 356
-1 votes
1 answer
157 views

How to publish multi platform python package

For our projects we need our own developped python package but it's currently compiled only for python 3.7. For many reason we would like to bypass this restriction and use it with any >=3.7 python ...
Brice_'s user avatar
  • 1
0 votes
0 answers
200 views

How to add files outside of src directory to Python wheel

I have a Python package with the following directory structure: project_root_dir/ ├── config/ │ └── (config files) ├── src/ │ ├── sophios/ │ │ └── (source files) ├── setup.py ├── MANIFEST.in ...
Samee's user avatar
  • 31
1 vote
1 answer
145 views

Wheels created by "pip freeze" and "pip wheel" not usable with --no-index and --find-links?

I created wheels from an existing venv, that resulted in, among others, the following wheel. The wheel was created within docker, with a Python version of 3.9 (the smallest possible versions were ...
Johannes Schaub - litb's user avatar
0 votes
2 answers
2k views

cuDF installation failure: "Didn't find wheel for cudf-cu12 24.6.1"

I'm trying to install cuDF to gain the glorious powers of multithreading my NVIDIA GPU in my python scripts. However, I can't install cuDF. To install cuDF, i went to https://docs.rapids.ai/install ...
Sam's user avatar
  • 43
1 vote
0 answers
150 views

vsruntime DLLs conflict after delvewheel repair

I am building wheel package for pypi, that usually is OK, but after updating some thirdparties I've got an error: >>> from meshlib import mrmeshpy as mm Traceback (most recent call last): ...
Grant Karapetyan's user avatar
1 vote
0 answers
69 views

How to ensure that at least one optional dependency is specified during installation of a python wheel?

I have a unique use case where my python package specifies 3 optional dependencies to setuptools.setup using the extras_require argument. While each of those individual dependencies is kind of ...
Kirthi's user avatar
  • 11

1
2 3 4 5
20