Skip to main content
2 votes
1 answer
38 views

How to automatically download or warn about a non-PyPi dependency of a Python package?

I have a Python package, which is distributed on PyPi. It depends on number of other packages available on PyPi and on Psi4, which is only distributed on Conda repositories (https://anaconda.org/psi4/...
-1 votes
1 answer
44 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 ...
0 votes
1 answer
28 views

AWS Lambda with conda python dependencies

I am currently trying to get my conda python environment to an aws lambda layer to import it in the lambda. When using pip with the precompiled pandas / numpy layer it works fine, but when using conda ...
2 votes
1 answer
88 views

How can I build / distribute / install Python packages with limited access to packages from PyPI?

At my workplace pip is not able to access the outside world to download packages. I'm not sure what system exactly is preventing this, but ideally I shouldn't be installing any old packages from the ...
0 votes
1 answer
65 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 ...
8 votes
3 answers
7k views

Accessing Data Resources for Python Poetry Based Packages

I recently started experimenting with Poetry for package and dependency management, and I am still getting used to the differences between it and my experience with setuptools. Specifically, I would ...
30 votes
2 answers
7k views

How to build a C extension in keeping with PEP 517, i.e. with pyproject.toml instead of setup.py?

I want to build a C extension for CPython. I could do it traditionally with a setup.py file. However, for the reasons mentioned in PEP 517, I would prefer a declarative approach using a pyproject.toml....
1 vote
0 answers
17 views

Is there a way to specify default dependencies, or dependencies installed only if an extra is not specified, in pyproject.toml?

I have a library mylib that depends on OpenCV. There are 2 distributions of OpenCV, opencv-python and opencv-python-headless. Either one works for mylib but only one can be installed, so for ...
-1 votes
1 answer
94 views

Having problems with pip install: packaging.specifiers.InvalidSpecifier: Invalid specifier: '>="3.8"'

I'm totally new to coding in general. I was trying to run "pip install vision" command on my CMD which runs as administrator. I have following messages appearing for me: C:\Windows\system32&...
0 votes
0 answers
53 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. ...
0 votes
0 answers
51 views

How to Rename a Python Package and Update All Imports Automatically?

I downloaded a Python package from the pure_python branch of the mistree repository using: pip install git+https://github.com/knaidoo29/mistree.git@pure_python The package is installed with a ...
0 votes
0 answers
38 views

Pipenv packages install using requirements.txt

I'm working on a large Python framework built from about fifty packages; these packages and all their dependencies (400 more packages!) are referenced in several requirements.txt files for all ...
1 vote
1 answer
1k views

Uninstall uv python package installer

I recently installed uv on linux using the command line provided in the documentation: curl -LsSf https://astral.sh/uv/install.sh | sh It created an executable in /home/currentuser/.cargo/bin/uv. Now,...
1 vote
0 answers
20 views

Python absolute Imports are not resolved as intended

I work with a large repository (https://github.com/jenellefeather/model_metamers_pytorch). This repository has many packages. All imports are absolute. To run the code the repository says to copy a ...
71 votes
4 answers
192k views

How to import a module from a different folder?

I have a project which I want to structure like this: myproject ├── api │ ├── __init__.py │ └── api.py ├── backend │ ├── __init__.py │ └── backend.py ├── models │ ├── __init__.py │ └── ...

15 30 50 per page
1
2 3 4 5
102