python-wheel

How to resolve, Import "pqcrypto" could not be resolved?

How to resolve, Import "pqcrypto" could not be resolved? Question: I am trying to use the pqcrypto library but can not resolve the issue: Import "pqcrypto" could not be resolved Pylance (reportMissingImports) I am using python 3.10.6 on a ubuntu 22.4 virtual machine (virtual box). Pip version 23.0.1. Initially I could not pip install this …

Total answers: 1

How to force a platform wheel using build and pyproject.toml?

How to force a platform wheel using build and pyproject.toml? Question: I am trying to force a Python3 non-universal wheel I’m building to be a platform wheel, despite not having any native build steps that happen during the distribution-packaging process. The wheel will include an OS-specific shared library, but that library is built and copied …

Total answers: 1

Cartopy python Package (PEP 517) wheel building

Cartopy python Package (PEP 517) wheel building Question: I am trying to make a program with tropycal but it shows a wheel building error for a package dependency. Called Cartopy. Pip3 Error: ERROR: Could not build wheels for cartopy which use PEP 517 and cannot be installed directly. I tried a solution from another StackOverflow …

Total answers: 2

how to download and install wxPython wheel from github for Python 3.10 to overcome disutils and setuptools problem

how to download and install wxPython wheel from github for Python 3.10 to overcome disutils and setuptools problem Question: Python 3.10 has a problem with disutils and setuptools>=58 in that wxPython will not run in conjunction with packages Gooey/DEAP/NEMO. I have been told there is a wxPython wheel which gets round those problems https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2 but …

Total answers: 2

Pip cannot install wxPython for Python 3.10 (32-bit)

Pip cannot install wxPython for Python 3.10 (32-bit) Question: I have installed two frameworks of Python 3.10. There is wxPython310 for 64-bit Python. But there aren’t any wxPython for 32-bit Python. I tried to install wxPython with https://wxpython.org/Phoenix/snapshot-builds/wxPython-4.1.2a1.dev5259+d3bdb143.tar.gz, but it shows me the error code like this. Running setup.py install for wxPython … error error: …

Total answers: 4

AnalysisException: Path does not exist: dbfs:/databricks/python/lib/python3.7/site-packages/sampleFolder/data;

AnalysisException: Path does not exist: dbfs:/databricks/python/lib/python3.7/site-packages/sampleFolder/data; Question: I am packing the following code in a whl file: from pkg_resources import resource_filename def path_to_model(anomaly_dir_name: str, data_path: str): filepath = resource_filename(anomaly_dir_name, data_path) return filepath def read_data(spark) -> DataFrame: return (spark.read.parquet(str(path_to_model("sampleFolder", "data")))) I confirmed that the whl file contains the parquet files under sampleFolder/data/ directory correctly. When i …

Total answers: 2

How to ensure the MSVC++ Redistributable is available on user's system?

How to ensure the MSVC++ Redistributable is available on user's system? Question: I wrote a Python library in C++14. Since users often do not have a C++ compiler installed, I create wheels for Linux, Windows and macOS and upload those to PyPI. While this works fine for Linux and macOS, on Windows it is required …

Total answers: 1

How to get pip to tell me why it doesn't match PyPI binary wheels?

How to get pip to tell me why it doesn't match PyPI binary wheels? Question: I’m building my own install of Python, then using pip to install some packages into it. I want to use the pre-built binary wheels for packages like Cryptography. Python 2.7.15 / 2.7.16 Pip 19.0.3 Setuptools 40.8.0 On GNU/Linux is just …

Total answers: 2

What is the meaning of "Failed building wheel for X" in pip install?

What is the meaning of "Failed building wheel for X" in pip install? Question: This is a truly popular question here at SO, but none of the many answers I have looked at, clearly explain what this error really mean, and why it occurs. One source of confusion, is that when (for example) you do …

Total answers: 15

Installing mysqlclient in Python 3.6 in windows

Installing mysqlclient in Python 3.6 in windows Question: I want to install MySqlclient on my windows system. I am Currently using Python 3.6. After going through the various post over Stackoverflow, I could Not find the correct way. This is what I have done so far: 1) Installation by using pip pip install mysqlclient. Error: …

Total answers: 10