QPython3 (Python 3) supports Numpy now

189 views
Skip to first unread message

QPython Lab

unread,
May 14, 2018, 11:53:10 AM5/14/18
to QPython
QPython3 (Python 3) supports Numpy now, Please follow the introduction to enable numpy with your QPython3.


BTW: If you want to learn more about numpy, please read sample from : https://github.com/AIPYX/deepLearningBook-Notes

William Wang

unread,
Jul 29, 2018, 10:30:20 PM7/29/18
to QPython
excacly do follow the instruct ,still not work. .and follow testing clear application data and try,same error ,can not find numpy module.
thanks.
  • Download private31_py3.6.6.mp3
  • Rename it as private31.mp3
  • then upload to the /sdcard/qython/.py3_cache directory
  • Switch to Python 3 in QPython's setting or switch to Python3.6 in QPython3's setting.
testscripy.py

testscipy.py" && exit             <
Traceback (most recent call last):
  File "/storage/emulated/0/qpython/scripts3/lotto/testscipy.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
1|jackpot2lte:/ $

William Wang

unread,
Jul 29, 2018, 11:40:16 PM7/29/18
to QPython
ok,after install scypi-apy3 and numpy-apy3 by qpypi ,the
import numpy as np
passed,but get another error:
 Traceback (most recent call last):
  File "/storage/emulated/0/qpython/scripts3/lotto/testscipy.py", line 2, in <module>
    from scipy import stats
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/stats/__init__.py", line 345, in <module>
    from .stats import *
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/stats/stats.py", line 171, in <module>
    from . import distributions
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/stats/distributions.py", line 10, in <module>
    from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/stats/_distn_infrastructure.py", line 16, in <module>
    from scipy.misc import doccer
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/misc/__init__.py", line 68, in <module>
    from scipy.interpolate._pade import pade as _pade
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/interpolate/__init__.py", line 175, in <module>
    from .interpolate import *
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/interpolate/interpolate.py", line 32, in <module>
    from .interpnd import _ndim_coords_from_arrays
  File "interpnd.pyx", line 1, in init scipy.interpolate.interpnd
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/spatial/__init__.py", line 94, in <module>
    from .kdtree import *
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/spatial/kdtree.py", line 8, in <module>
    import scipy.sparse
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/sparse/__init__.py", line 229, in <module>
    from .csr import *
  File "/data/user/0/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/sparse/csr.py", line 15, in <module>
    from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: dlopen failed: cannot locate symbol "_ZTISt9bad_alloc" referenced by "/data/data/org.qpython.qpy3/files/lib/python3.6/site-packages/scipy/sparse/_sparsetools.cpython-36m.so"...
1|jackpot2lte:/ $

Jaswant Singh Rana

unread,
Jul 22, 2020, 3:39:52 PM7/22/20
to QPython
Does it support face_recognition as well? If not, any plans for it?
Reply all
Reply to author
Forward
0 new messages