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 installation in virtual environment is not detected on macOS #407

Closed
helgee opened this issue Jan 23, 2024 · 2 comments
Closed

NumPy installation in virtual environment is not detected on macOS #407

helgee opened this issue Jan 23, 2024 · 2 comments

Comments

@helgee
Copy link

helgee commented Jan 23, 2024

  • macOS 14.2.1
  • Python 3.11.7 (installed via pyenv, also tried Homebrew and System Python)
  • Rust 1.75.0

When I try to run the tests with NumPy installed in the active virtual environment I get the following error message:

Failed to access NumPy array API capsule: PyErr { type: <class 'ModuleNotFoundError'>, value: ModuleNotFoundError("No module named 'numpy'"), traceback: None }

It does work however when I install NumPy in the global environment. I also quickly checked in a Linux container and there NumPy is being picked up from the virtual environment as intended.

@davidhewitt
Copy link
Member

This is probably related to PyO3/pyo3#1741

@adamreichold
Copy link
Member

Closing as this is more productively tracked in PyO3/pyo3#1741

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

3 participants