Please help me to solve the Numpy installing error, My Jetson Nano is Model P3450. Thanks!

  1. Jetson Nano Developer Kit SD Card Image(JetPack4.6)
    The Ubuntu runs OK.
  2. I select the PyTorch : Python 3.6 - torch-1.8.0-cp36-cp36m-linux_aarch64.whl
  3. pip3 OK
    sudo apt-get install python3-pip libopenblas-base libopenmpi-dev —success
  4. Cython OK
    pip3 install Cython —success
  5. But when I install Numpy, Error occurs:
    pip3 install numpy —Failed

dl@J:~$ pip3 install numpy

Collecting numpy
Using cached
Building wheels for collected packages: numpy
Running bdist_wheel for numpy … error
Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-beu6ias2/numpy/’;f=getattr(tokenize, ‘open’, open)(file);‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” bdist_wheel -d /tmp/tmpoip50rvapip-wheel- --python-tag cp36:
Running from numpy source directory.
Cythonizing sources
warning: _generator.pyx:3226:8: The ‘DEF’ statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See Deprecate conditional compilation · Issue #4310 · cython/cython · GitHub

Error compiling Cython file:

cdef sfc64_state rng_state

  def __init__(self, seed=None):
      BitGenerator.__init__(self, seed)
      self._bitgen.state = <void *>&self.rng_state
      self._bitgen.next_uint64 = &sfc64_uint64

_sfc64.pyx:90:35: Cannot assign type ‘uint64_t (*)(void ) except? -1 nogil’ to 'uint64_t ()(void *) noexcept nogil’


Could you try to install Cython v0.29.36 and numpy v1.19.4?


Thanks. Yes, your suggestion is right!
I tried a low version of Cython==0.23.1 and a low version of numpy==1.15.4 . They work on JetPack 4.5 and 4.6.1 .
I think they are too low. So I’ll try to install higher versions. And I need to install Python3-dev before cython is installed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.