Skip to content

pip cannot find any site-packages #3808

@JJJHolscher

Description

@JJJHolscher

rustpython --install-pip fails for
OS: Manjaro 21.3.0
Rustc: 1.81.0

downloading get-pip.py...
running get-pip.py...
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip

I managed to install pip with ensurepip from the ensure-pip branch.

$ cargo run --release --features ssl -- -m ensurepip                                                                                              
[...]
Successfully installed pip-22.0.4 setuptools-58.1.0

But then the error repeated when I tried to install numpy beautifulsoup or configparser.

$ cargo run --release --features ssl -- -m pip install numpy                                                                                            
[...]
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy

(tangential: I tried to debug ~/.local/lib/rustpython3.10/pip/_internal/index/package_finder.py) in vscode but the default debugger would not start when rustpython was its interpreter. I have not raised an issue for this because I am unfamiliar with debugger internals.)

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