Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy Dependencies Error When Importing Modules #67

Open
Sahil1709 opened this issue Sep 27, 2024 · 0 comments
Open

Numpy Dependencies Error When Importing Modules #67

Sahil1709 opened this issue Sep 27, 2024 · 0 comments

Comments

@Sahil1709
Copy link

After following all the setup steps while trying to import all the modules, I encountered a NumPy dependencies error:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some modules may need to rebuild instead, e.g., with 'pybind11>=2.12'.

It suggests either downgrading NumPy to <2 or upgrading the affected module. After some investigation, I found that NumPy 1.23.0 works perfectly with all other dependencies in the project. To resolve the issue:

  • Run pip install numpy==1.23.0.

Additional Note for Windows Users:
For those using Windows, you'll need to install Microsoft Visual Studio Build Tools before installing numpy<2. This step ensures the correct compilation and installation of dependencies.

This fix resolved the issue on my setup, and I believe it will help others encountering the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant