Skip to content

No module named pip / No module named 'pybind11' #1469

@starenka

Description

@starenka
starenka /tmp % uv venv tmp                     
Using Python 3.11.8 interpreter at /usr/bin/python3.11
Creating virtualenv at: tmp
starenka /tmp % source tmp/bin/activate
(tmp) starenka /tmp % python -V
Python 3.11.8
(tmp) starenka /tmp % pip --version                              
pip 24.0 from /usr/lib/python3/dist-packages/pip (python 3.11)
(tmp) starenka /tmp % uv pip install 'fasttext==0.9.2'
error: Failed to download and build: fasttext==0.9.2
  Caused by: Failed to build: fasttext==0.9.2
  Caused by: Build backend failed to determine metadata through `prepare_metadata_for_build_wheel`:
--- stdout:

--- stderr:
/tmp/.tmpXuExdC/.venv/bin/python: No module named pip
Traceback (most recent call last):
  File "<string>", line 38, in __init__
ModuleNotFoundError: No module named 'pybind11'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "/tmp/.tmpXuExdC/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 366, in prepare_metadata_for_build_wheel
    self.run_setup()
  File "/tmp/.tmpXuExdC/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 480, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/tmp/.tmpXuExdC/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
    exec(code, locals())
  File "<string>", line 72, in <module>
  File "<string>", line 41, in __init__
RuntimeError: pybind11 install failed.
---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions