Skip to content

Cannot install a different version of numpy (can't use gensim and other dependent packages) #5199

@mcjkurz

Description

@mcjkurz

Describe the current behavior
Gensim and other packages that are dependent on the earlier versions of numpy cannot be used, since for some reason it has become impossible to install a different version of numpy (as shown in the attached images). I have tried using importlib and --ignore-installed as well.

Even if the installation of an earlier version is successful, the real version of the package is still 2.0.2.

Image

Since gensim requires numpy < 2.0, it cannot be loaded properly.

Image

These are the logs (frozen modules mentioned):

Timestamp Level Message
Mar 21, 2025, 3:40:13 PM WARNING 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Mar 21, 2025, 3:40:13 PM WARNING 0.00s - to python to disable frozen modules.
Mar 21, 2025, 3:40:13 PM WARNING 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
Mar 21, 2025, 3:40:13 PM WARNING 0.00s - Debugger warning: It seems that frozen modules are being used, which may
Mar 21, 2025, 3:40:12 PM INFO Kernel started: b4a80754-8609-4ccc-8919-ad241fe9a0fb, name: python3
Mar 21, 2025, 3:40:11 PM WARNING 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Mar 21, 2025, 3:40:11 PM WARNING 0.00s - to python to disable frozen modules.
Mar 21, 2025, 3:40:11 PM WARNING 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
Mar 21, 2025, 3:40:11 PM WARNING 0.00s - Debugger warning: It seems that frozen modules are being used, which may

Describe the expected behavior
I would like to be able to install any version of numpy in the current Python session.

What web browser you are using
Google Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions