Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Installation broken in fresh virtual environments #145

Open
EdmundGoodman opened this issue Jul 25, 2023 · 3 comments
Open

Installation broken in fresh virtual environments #145

EdmundGoodman opened this issue Jul 25, 2023 · 3 comments

Comments

@EdmundGoodman
Copy link

EdmundGoodman commented Jul 25, 2023

Description

The QML library cannot be installed in an environment where NumPy is not already installed, for example a fresh virtual environment when installing another project which uses QML as a dependency.

To reproduce

python3 -m venv venv
source venv/bin/activate
pip install qml

image

If NumPy is installed beforehand, then it works

python3 -m venv venv
source venv/bin/activate
pip install numpy
pip install qml

image

How to fix

NumPy should be specified as a dependency in the setup configuration.

@jintianyun56
Copy link

jintianyun56 commented Sep 23, 2023

Hi there,

The system is Centos stream 9, I run this code
python3 -m venv venv
source venv/bin/activate
pip install numpy
pip install qml

It has the same error "No module named numpy". "pip install numpy" did not work.
I tried to use Intel compiler (2019) and ifort 19.0.0.117 with MKL, also failed showing " ModuleNotFoundError: No module named 'numpy' "

Thanks

@UnixJunkie
Copy link

probably related to #149

Anybody managed to fix that?

@UnixJunkie
Copy link

I have numpy==1.23.4 installed, and I can't install qml@git+https://github.com/qmlcode/qml@a7921c9176b9498dcce096efad0883271706d633 ...

This issue is almost one year old. Can we have some feedback from the maintainers?

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

No branches or pull requests

3 participants