Install numpy error on JetPack 4.6


I’m trying to install PyTorch on JetPack-4.6
And numpy module isn’t possible to install.
It was no problem until 2~3 weeks ago at least when I did.

These are error messages.

Error compiling Cython file:

self.rng_state.ctr.v[i] = counter[i]


     self._bitgen.state = <void *>&self.rng_state
     self._bitgen.next_uint64 = &philox_uint64

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

Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-drwshpmu/numpy/’;f=getattr(tokenize, ‘open’, open)(file);‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-6oaiw92s-record/install-record.txt --single-version-externally-managed --compile --user --prefix=” failed with error code 1 in /tmp/pip-build-drwshpmu/numpy/

And this is the full log to install numpy.
numpy_install-error.txt (7.8 KB)


Could you try NumPy 1.19.4?

$ sudo apt-get install python3-pip
$ pip3 install Cython
$ pip3 install numpy==1.19.4


There are same error in 1.19.4, 1.19.3 and 1.19.0.

@sumin.lee1 just a hunch - try pip3 install 'Cython<4' first

Same version of Cython is installed. (cython-3.0.0)

@sumin.lee1 hmm I’m not sure if it is something else about your environment then - hard to say? The container builds for numpy and pytorch on JetPack 4.6 are passing:

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