TX2 安装jupyter。出错error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

安装jupyter的原因是,我需要TX2上安装MXnet框架的依赖。

 

完整错误:

bundled/zeromq/src/atomic_ptr.hpp:269:46: error: binding ‘const zmq::mutex_t’ to reference of type ‘zmq::mutex_t&’ discards qualifiers
                                                  sync
                                                  ^
    bundled/zeromq/src/atomic_ptr.hpp:116:14: note:   initializing argument 4 of ‘void* zmq::atomic_cas(void* volatile*, void*, void*, zmq::mutex_t&)’
     inline void *atomic_cas (void *volatile *ptr_,
                  ^
    error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-MqWkfc/pyzmq/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-UTzzTR/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-MqWkfc/pyzmq/

TX2 安装jupyter。出错error: command 'aarch64-linux-gnu-gcc' failed with exit status 1_第1张图片

出现这个错误的原因可能是,python依赖没有装全。    

执行这个命令:

sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev


然后再运行: 

pip install jupyter

TX2 安装jupyter。出错error: command 'aarch64-linux-gnu-gcc' failed with exit status 1_第2张图片

 

TX2 安装jupyter。出错error: command 'aarch64-linux-gnu-gcc' failed with exit status 1_第3张图片

发现错误依然存在,后来看到一句错误,“Failed building wheel for pyzmq"

我就尝试用pip装pyzmq,报错和上面的一模一样,这下找到安装不上jupyter的根本原因啦,是因为pyzmq ,找个博主写的安装pyzmq的博客,进行手动安装。

https://blog.csdn.net/n_sev7/article/details/77320250

TX2 安装jupyter。出错error: command 'aarch64-linux-gnu-gcc' failed with exit status 1_第4张图片

依然出错,所以,继续努力啦!

 

仍然未解决这个错误,如果与大神和我有一样的错误,并且解决出来啦!请联系我哦!

 

你可能感兴趣的:(环境安装)