Closed nathaniacalista01 closed 2 months ago
The current version of Chaquopy defaults to Python 3.8, but we don't have NumPy 1.23.3 for that version of Python.
The current version of Chaquopy defaults to Python 3.8, but we don't have NumPy 1.23.3 for that version of Python.
- To see which NumPy versions are available for which Python versions, see the repository.
- To change your app's Python version, see the documentation.
May I know which version of NumPy supported by Chaquopy? I saw this version the link that you have referred, so I think this NumPy 1.23.3 is supported.
Update : I've tried to change my Python to 3.8 and install NumPy 1.20.3, but I still get an error
The "cp" part of the filename identifies the Python version. So the packages in that image are for Python 3.9.
I've tried to downgrade my Python version and install the compatible version of numpy, but it still get an error
As you can see from the repository, NumPy 1.20.3 is available for Python 3.9, and NumPy 1.23.3 for Python 3.9-3.11.
If you still can't install it, please post thechaquopy
section of your build.gradle file, and the full build log.
Yup I still get an error and for more context, I need to use numpy that is >= 1.20, therefore I use a higher version of Python (not 3.8). This is my chaquopy section
chaquopy {
defaultConfig {
version = "3.11"
buildPython("C:/Users/ASUS/AppData/Local/Programs/Python/Python311/python.exe")
pip{
install("numpy==1.23.3")
install("opencv-python")
install("pupil_apriltags")
}
}
}
And now I don't get any error, but it is still loading until now (already 30 minutes)
Unfortunately we don't have OpenCV for Python 3.9 or later yet (#779). However, we do have a newer NumPy version for Python 3.8 in a separate repository: see https://github.com/chaquo/chaquopy/issues/559#issuecomment-989318791.
Thanks! it works like a charm for me
Chaquopy version
Relevant parts of your build.gradle file
Describe your issue
I try to pip install a version of numpy, but I get this warning and error WARN: Could not locate executable g77 WARN: Could not locate executable f77 WARN: Could not locate executable ifort WARN: Could not locate executable ifl WARN: Could not locate executable f90 WARN: Could not locate executable DF WARN: Could not locate executable efl WARN: Could not locate executable gfortran WARN: Could not locate executable f95 WARN: Could not locate executable g95 WARN: Could not locate executable efort WARN: Could not locate executable efc WARN: Could not locate executable flang WARN: don't know how to compile Fortran code on platform 'nt' error: CCompiler.compile: Chaquopy cannot compile native code