Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to install jupyter notebook in jetson TX2? #21

Open
dltmdwls25 opened this issue Jul 18, 2018 · 4 comments
Open

how to install jupyter notebook in jetson TX2? #21

dltmdwls25 opened this issue Jul 18, 2018 · 4 comments

Comments

@dltmdwls25
Copy link

Hi dusty, my name is ji-hoon Beak from korea.

I have seeing jetson-reinforcement in your git and try install.

I could do step1( : "Building from Source"). however I could not do step2(: "Verifying PyTorch")..
When I type "jupyter notebook intro-pytorch.ipynb" into the terminal, the following error message is displayed.

Error executing Jupiter command 'notebook': [Errno 2] No such file or directory

So I tried to install notebook using anaconda3 but failed because anaconda3 does not support the architecture of jetsonTX2.
Also, I try installed notebook using pip, but it was printed as below.

$ pip install jupyter

Collecting jupyter
Using cached https://files.pythonhosted.org/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl
Requirement already satisfied: nbconvert in /usr/local/lib/python2.7/dist-packages (from jupyter) (5.3.1)
Collecting ipywidgets (from jupyter)
Downloading https://files.pythonhosted.org/packages/f0/5d/868df21e3b004a5a61294cab70e1f6f44986933eb3aa9c396dfd5112acb2/ipywidgets-7.3.0-py2.py3-none-any.whl (109kB)
100% |████████████████████████████████| 112kB 1.0MB/s
Collecting notebook (from jupyter)
Using cached https://files.pythonhosted.org/packages/5e/7c/7fd8e9584779d65dfcad9fa2e09c76131a41f999f853a9c7026ed8585586/notebook-5.6.0-py2.py3-none-any.whl
Collecting ipykernel (from jupyter)
Using cached https://files.pythonhosted.org/packages/8e/65/c7ca3e3d05f9bd51b3010076b84f4e7304b12d0abf62a48f6cec2c90c019/ipykernel-4.8.2-py2-none-any.whl
Collecting qtconsole (from jupyter)
Using cached https://files.pythonhosted.org/packages/90/ff/047e0dca2627b162866920e7aa93f04523c0ae81e5c67060eec85701992d/qtconsole-4.3.1-py2.py3-none-any.whl
Collecting jupyter-console (from jupyter)
Using cached https://files.pythonhosted.org/packages/77/82/6469cd7fccf7958cbe5dce2e623f1e3c5e27f1bb1ad36d90519bc2d5d370/jupyter_console-5.2.0-py2.py3-none-any.whl
Requirement already satisfied: pandocfilters>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (1.4.2)
Requirement already satisfied: entrypoints>=0.2.2 in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (0.2.3)
Requirement already satisfied: jinja2 in /usr/lib/python2.7/dist-packages (from nbconvert->jupyter) (2.8)
Requirement already satisfied: testpath in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (0.3.1)
Requirement already satisfied: mistune>=0.7.4 in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (0.8.3)
Requirement already satisfied: nbformat>=4.4 in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (4.4.0)
Requirement already satisfied: pygments in /usr/lib/python2.7/dist-packages (from nbconvert->jupyter) (2.1)
Requirement already satisfied: jupyter-core in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (4.4.0)
Requirement already satisfied: bleach in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (2.1.3)
Requirement already satisfied: traitlets>=4.2 in /usr/local/lib/python2.7/dist-packages (from nbconvert->jupyter) (4.3.2)
Requirement already satisfied: ipython<6.0.0,>=4.0.0; python_version < "3.3" in /usr/local/lib/python2.7/dist-packages (from ipywidgets->jupyter) (5.7.0)
Collecting widgetsnbextension~=3.3.0 (from ipywidgets->jupyter)
Downloading https://files.pythonhosted.org/packages/b9/43/f6ff09448f7b961e102fd75b7e46a5d44b68b9746bb1ab5c4be64c3e236d/widgetsnbextension-3.3.0-py2.py3-none-any.whl (2.2MB)
100% |████████████████████████████████| 2.2MB 1.9MB/s
Requirement already satisfied: ipython-genutils in /usr/local/lib/python2.7/dist-packages (from notebook->jupyter) (0.2.0)
Requirement already satisfied: prometheus-client in /usr/local/lib/python2.7/dist-packages (from notebook->jupyter) (0.3.0)
Requirement already satisfied: Send2Trash in /usr/local/lib/python2.7/dist-packages (from notebook->jupyter) (1.5.0)
Collecting jupyter-client>=5.2.0 (from notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/94/dd/fe6c4d683b09eb05342bd2816b7779663f71762b4fa9c2d5203d35d17354/jupyter_client-5.2.3-py2.py3-none-any.whl
Requirement already satisfied: tornado>=4 in /usr/lib/python2.7/dist-packages (from notebook->jupyter) (4.2.1)
Collecting terminado>=0.8.1 (from notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/2e/20/a26211a24425923d46e1213b376a6ee60dc30bcdf1b0c345e2c3769deb1c/terminado-0.8.1-py2.py3-none-any.whl
Collecting pyzmq>=17 (from notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/aa/fd/f2e65a05558ff8b58b71404efc79c2b03cef922667260e1d703896597b93/pyzmq-17.1.0.tar.gz
Requirement already satisfied: ipaddress; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from notebook->jupyter) (1.0.16)
Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.0 in /usr/local/lib/python2.7/dist-packages (from jupyter-console->jupyter) (1.0.15)
Requirement already satisfied: configparser>=3.5; python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from entrypoints>=0.2.2->nbconvert->jupyter) (3.5.0)
Requirement already satisfied: MarkupSafe in /usr/lib/python2.7/dist-packages (from jinja2->nbconvert->jupyter) (0.23)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /usr/local/lib/python2.7/dist-packages (from nbformat>=4.4->nbconvert->jupyter) (2.6.0)
Collecting html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre (from bleach->nbconvert->jupyter)
Using cached https://files.pythonhosted.org/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from bleach->nbconvert->jupyter) (1.10.0)
Requirement already satisfied: decorator in /usr/lib/python2.7/dist-packages (from traitlets>=4.2->nbconvert->jupyter) (4.0.6)
Requirement already satisfied: enum34; python_version == "2.7" in /usr/lib/python2.7/dist-packages (from traitlets>=4.2->nbconvert->jupyter) (1.1.2)
Requirement already satisfied: setuptools>=18.5 in /usr/lib/python2.7/dist-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (20.7.0)
Requirement already satisfied: backports.shutil-get-terminal-size; python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (1.0.0)
Collecting pexpect; sys_platform != "win32" (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter)
Using cached https://files.pythonhosted.org/packages/89/e6/b5a1de8b0cc4e07ca1b305a4fcc3f9806025c1b651ea302646341222f88b/pexpect-4.6.0-py2.py3-none-any.whl
Requirement already satisfied: pathlib2; python_version == "2.7" or python_version == "3.3" in /usr/local/lib/python2.7/dist-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (2.3.2)
Collecting simplegeneric>0.8 (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter)
Using cached https://files.pythonhosted.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b/simplegeneric-0.8.1.zip
Requirement already satisfied: pickleshare in /usr/local/lib/python2.7/dist-packages (from ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (0.7.4)
Requirement already satisfied: python-dateutil>=2.1 in /usr/lib/python2.7/dist-packages (from jupyter-client>=5.2.0->notebook->jupyter) (2.4.2)
Collecting ptyprocess; os_name != "nt" (from terminado>=0.8.1->notebook->jupyter)
Using cached https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Requirement already satisfied: wcwidth in /usr/local/lib/python2.7/dist-packages (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter) (0.1.7)
Requirement already satisfied: functools32; python_version == "2.7" in /usr/local/lib/python2.7/dist-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.4->nbconvert->jupyter) (3.2.3.post2)
Requirement already satisfied: webencodings in /usr/local/lib/python2.7/dist-packages (from html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre->bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: scandir; python_version < "3.5" in /usr/local/lib/python2.7/dist-packages (from pathlib2; python_version == "2.7" or python_version == "3.3"->ipython<6.0.0,>=4.0.0; python_version < "3.3"->ipywidgets->jupyter) (1.7)
launchpadlib 1.10.3 requires testresources, which is not installed.
Installing collected packages: pyzmq, jupyter-client, ptyprocess, terminado, ipykernel, notebook, widgetsnbextension, ipywidgets, qtconsole, jupyter-console, jupyter, html5lib, pexpect, simplegeneric
Running setup.py install for pyzmq ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-F64xGG/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-1UyN3n/install-record.txt --single-version-externally-managed --compile:
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-2.7
creating build/lib.linux-aarch64-2.7/zmq
copying zmq/_future.py -> build/lib.linux-aarch64-2.7/zmq
copying zmq/error.py -> build/lib.linux-aarch64-2.7/zmq
copying zmq/decorators.py -> build/lib.linux-aarch64-2.7/zmq
copying zmq/init.py -> build/lib.linux-aarch64-2.7/zmq
creating build/lib.linux-aarch64-2.7/zmq/green
copying zmq/green/device.py -> build/lib.linux-aarch64-2.7/zmq/green
copying zmq/green/poll.py -> build/lib.linux-aarch64-2.7/zmq/green
copying zmq/green/core.py -> build/lib.linux-aarch64-2.7/zmq/green
copying zmq/green/init.py -> build/lib.linux-aarch64-2.7/zmq/green
creating build/lib.linux-aarch64-2.7/zmq/green/eventloop
copying zmq/green/eventloop/zmqstream.py -> build/lib.linux-aarch64-2.7/zmq/green/eventloop
copying zmq/green/eventloop/ioloop.py -> build/lib.linux-aarch64-2.7/zmq/green/eventloop
copying zmq/green/eventloop/init.py -> build/lib.linux-aarch64-2.7/zmq/green/eventloop
creating build/lib.linux-aarch64-2.7/zmq/devices
copying zmq/devices/monitoredqueue.py -> build/lib.linux-aarch64-2.7/zmq/devices
copying zmq/devices/proxydevice.py -> build/lib.linux-aarch64-2.7/zmq/devices
copying zmq/devices/basedevice.py -> build/lib.linux-aarch64-2.7/zmq/devices
copying zmq/devices/monitoredqueuedevice.py -> build/lib.linux-aarch64-2.7/zmq/devices
copying zmq/devices/init.py -> build/lib.linux-aarch64-2.7/zmq/devices
creating build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/frame.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/stopwatch.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/context.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/attrsettr.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/poll.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/socket.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/version.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/init.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/tracker.py -> build/lib.linux-aarch64-2.7/zmq/sugar
copying zmq/sugar/constants.py -> build/lib.linux-aarch64-2.7/zmq/sugar
creating build/lib.linux-aarch64-2.7/zmq/auth
copying zmq/auth/ioloop.py -> build/lib.linux-aarch64-2.7/zmq/auth
copying zmq/auth/init.py -> build/lib.linux-aarch64-2.7/zmq/auth
copying zmq/auth/thread.py -> build/lib.linux-aarch64-2.7/zmq/auth
copying zmq/auth/base.py -> build/lib.linux-aarch64-2.7/zmq/auth
copying zmq/auth/certs.py -> build/lib.linux-aarch64-2.7/zmq/auth
creating build/lib.linux-aarch64-2.7/zmq/backend
copying zmq/backend/init.py -> build/lib.linux-aarch64-2.7/zmq/backend
copying zmq/backend/select.py -> build/lib.linux-aarch64-2.7/zmq/backend
creating build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/_poll.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/context.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/socket.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/error.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/utils.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/_cffi.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/devices.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/init.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/message.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/constants.py -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
creating build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/backend/cython/init.py -> build/lib.linux-aarch64-2.7/zmq/backend/cython
creating build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/constant_names.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/garbage.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/strtypes.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/interop.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/win32.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/sixcerpt.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/init.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/monitor.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/jsonapi.py -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/z85.py -> build/lib.linux-aarch64-2.7/zmq/utils
creating build/lib.linux-aarch64-2.7/zmq/ssh
copying zmq/ssh/forward.py -> build/lib.linux-aarch64-2.7/zmq/ssh
copying zmq/ssh/init.py -> build/lib.linux-aarch64-2.7/zmq/ssh
copying zmq/ssh/tunnel.py -> build/lib.linux-aarch64-2.7/zmq/ssh
creating build/lib.linux-aarch64-2.7/zmq/log
copying zmq/log/handlers.py -> build/lib.linux-aarch64-2.7/zmq/log
copying zmq/log/init.py -> build/lib.linux-aarch64-2.7/zmq/log
creating build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_decorators.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_auth.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_pair.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_reqrep.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_future.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_monitor.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_poll.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_error.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_draft.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_context.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_includes.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_ioloop.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_zmqstream.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_log.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_cffi_backend.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_socket.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_monqueue.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_win32_shim.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/init.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_version.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_retry_eintr.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_security.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_multipart.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_z85.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_message.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_imports.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_ssh.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_constants.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_pubsub.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_etc.py -> build/lib.linux-aarch64-2.7/zmq/tests
copying zmq/tests/test_device.py -> build/lib.linux-aarch64-2.7/zmq/tests
creating build/lib.linux-aarch64-2.7/zmq/eventloop
copying zmq/eventloop/_deprecated.py -> build/lib.linux-aarch64-2.7/zmq/eventloop
copying zmq/eventloop/zmqstream.py -> build/lib.linux-aarch64-2.7/zmq/eventloop
copying zmq/eventloop/ioloop.py -> build/lib.linux-aarch64-2.7/zmq/eventloop
copying zmq/eventloop/init.py -> build/lib.linux-aarch64-2.7/zmq/eventloop
copying zmq/eventloop/future.py -> build/lib.linux-aarch64-2.7/zmq/eventloop
creating build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/concurrent.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/log.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/ioloop.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/init.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/stack_context.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado
copying zmq/eventloop/minitornado/util.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado
creating build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/windows.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/init.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/auto.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/interface.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/common.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado/platform
copying zmq/eventloop/minitornado/platform/posix.py -> build/lib.linux-aarch64-2.7/zmq/eventloop/minitornado/platform
copying zmq/devices/monitoredqueue.pxd -> build/lib.linux-aarch64-2.7/zmq/devices
copying zmq/backend/cffi/_cdefs.h -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cffi/_verify.c -> build/lib.linux-aarch64-2.7/zmq/backend/cffi
copying zmq/backend/cython/socket.pxd -> build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/backend/cython/checkrc.pxd -> build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/backend/cython/context.pxd -> build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/backend/cython/message.pxd -> build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/backend/cython/libzmq.pxd -> build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/backend/cython/constants.pxi -> build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/backend/cython/constant_enums.pxi -> build/lib.linux-aarch64-2.7/zmq/backend/cython
copying zmq/utils/buffers.pxd -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/pyversion_compat.h -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/zmq_compat.h -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/zmq_constants.h -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/ipcmaxlen.h -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/getpid_compat.h -> build/lib.linux-aarch64-2.7/zmq/utils
copying zmq/utils/mutex.h -> build/lib.linux-aarch64-2.7/zmq/utils
running build_ext
running configure
Did not find libzmq via pkg-config.
{'libraries': ['zmq'], 'extra_link_args': [], 'runtime_library_dirs': [], 'library_dirs': [], 'include_dirs': []}
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c build/temp.linux-aarch64-2.7/scratch/check_sys_un.c -o build/temp.linux-aarch64-2.7/scratch/check_sys_un.o
aarch64-linux-gnu-gcc -pthread build/temp.linux-aarch64-2.7/scratch/check_sys_un.o -o build/temp.linux-aarch64-2.7/scratch/check_sys_un
************************************************
Configure: Autodetecting ZMQ settings...
Custom ZMQ dir:
creating build/temp.linux-aarch64-2.7/scratch/tmp
cc -c /tmp/timer_createUDjT0t.c -o build/temp.linux-aarch64-2.7/scratch/tmp/timer_createUDjT0t.o
/tmp/timer_createUDjT0t.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
/tmp/timer_createUDjT0t.c: In function ‘main’:
/tmp/timer_createUDjT0t.c:2:5: warning: implicit declaration of function ‘timer_create’ [-Wimplicit-function-declaration]
timer_create();
^
cc build/temp.linux-aarch64-2.7/scratch/tmp/timer_createUDjT0t.o -o build/temp.linux-aarch64-2.7/scratch/a.out
build/temp.linux-aarch64-2.7/scratch/tmp/timer_createUDjT0t.o: In function main': timer_createUDjT0t.c:(.text+0x10): undefined reference to timer_create'
collect2: error: ld returned 1 exit status
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Izmq/utils -Izmq/backend/cython -Izmq/devices -c build/temp.linux-aarch64-2.7/scratch/vers.c -o build/temp.linux-aarch64-2.7/scratch/vers.o
build/temp.linux-aarch64-2.7/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
compilation terminated.

error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

Failed with default libzmq, trying again with /usr/local
{'libraries': ['zmq'], 'extra_link_args': [], 'runtime_library_dirs': ['/usr/local/lib'], 'library_dirs': ['/usr/local/lib'], 'include_dirs': ['/usr/local/include']}
************************************************
Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:       /usr/local
cc -c /tmp/timer_createZ4irn5.c -o build/temp.linux-aarch64-2.7/scratch/tmp/timer_createZ4irn5.o
/tmp/timer_createZ4irn5.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main (int argc, char **argv) {
 ^
/tmp/timer_createZ4irn5.c: In function ‘main’:
/tmp/timer_createZ4irn5.c:2:5: warning: implicit declaration of function ‘timer_create’ [-Wimplicit-function-declaration]
     timer_create();
     ^
Assembler messages:
Fatal error: can't create build/temp.linux-aarch64-2.7/scratch/tmp/timer_createZ4irn5.o: No such file or directory
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include -Izmq/utils -Izmq/backend/cython -Izmq/devices -c build/temp.linux-aarch64-2.7/scratch/vers.c -o build/temp.linux-aarch64-2.7/scratch/vers.o
build/temp.linux-aarch64-2.7/scratch/vers.c:4:17: fatal error: zmq.h: No such file or directory
compilation terminated.

error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

************************************************
Warning: Couldn't find an acceptable libzmq on the system.

If you expected pyzmq to link against an installed libzmq, please check to make sure:

    * You have a C compiler installed
    * A development version of Python is installed (including headers)
    * A development version of ZMQ >= 3.2 is installed (including headers)
    * If ZMQ is not in a default location, supply the argument --zmq=<path>
    * If you did recently install ZMQ to a default location,
      try rebuilding the ld cache with `sudo ldconfig`
      or specify zmq's location with `--zmq=/usr/local`

You can skip all this detection/waiting nonsense if you know
you want pyzmq to bundle libzmq as an extension by passing:

    `--zmq=bundled`

I will now try to build libzmq as a Python extension
unless you interrupt me (^C) in the next 10 seconds...

 1...
************************************************
Using bundled libzmq
already have bundled/zeromq
attempting ./configure to generate platform.hpp
Warning: failed to configure libzmq:
/bin/sh: 1: ./configure: not found

staging platform.hpp from: buildutils/include_linux
************************************************
checking for timer_create
creating build/temp.linux-aarch64-2.7/tmp
cc -c /tmp/timer_createUuMQRv.c -o build/temp.linux-aarch64-2.7/tmp/timer_createUuMQRv.o
/tmp/timer_createUuMQRv.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main (int argc, char **argv) {
 ^
/tmp/timer_createUuMQRv.c: In function ‘main’:
/tmp/timer_createUuMQRv.c:2:5: warning: implicit declaration of function ‘timer_create’ [-Wimplicit-function-declaration]
     timer_create();
     ^
cc build/temp.linux-aarch64-2.7/tmp/timer_createUuMQRv.o -o build/temp.linux-aarch64-2.7/a.out
build/temp.linux-aarch64-2.7/tmp/timer_createUuMQRv.o: In function `main':
timer_createUuMQRv.c:(.text+0x10): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
no timer_create, linking librt
************************************************
building 'zmq.libzmq' extension
creating build/temp.linux-aarch64-2.7/buildutils
creating build/temp.linux-aarch64-2.7/bundled
creating build/temp.linux-aarch64-2.7/bundled/zeromq
creating build/temp.linux-aarch64-2.7/bundled/zeromq/src
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_EPOLL=1 -Ibundled/zeromq/include -Ibundled -I/usr/include/python2.7 -c buildutils/initlibzmq.c -o build/temp.linux-aarch64-2.7/buildutils/initlibzmq.o
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DZMQ_HAVE_CURVE=1 -DZMQ_USE_TWEETNACL=1 -DZMQ_USE_EPOLL=1 -Ibundled/zeromq/include -Ibundled -I/usr/include/python2.7 -c bundled/zeromq/src/router.cpp -o build/temp.linux-aarch64-2.7/bundled/zeromq/src/router.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from bundled/zeromq/src/options.hpp:38:0,
                 from bundled/zeromq/src/own.hpp:37,
                 from bundled/zeromq/src/socket_base.hpp:37,
                 from bundled/zeromq/src/router.hpp:35,
                 from bundled/zeromq/src/router.cpp:32:
bundled/zeromq/src/atomic_ptr.hpp: In member function ‘int zmq::atomic_value_t::load() const’:
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-F64xGG/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-1UyN3n/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-F64xGG/pyzmq/

how to install jupyter notebook in jetson TX2?

Thanks for taking the time to read it! have a nice day~

@vrsoares
Copy link

I faced a similar problem, it was related to pyzmq v:15.0
Before installing jupyter try to update pyzmq to v.17

pip install pyzmq==17.0.0

If you're running a recent version of pip it won't uninstall the previous version of pyzmq, it can't uninstall disutil versions. I installed the version 9 of pip and it worked fine

pip install pip==9.0

Hope it helps.

@prioritize
Copy link

@dltmdwls25 I'm not sure if you've solved the problem yet, but I ran into the same problem this morning. The solution that @vrsoares got me part of the way to a solution but I was still having compilation errors. I was unable to find a libzmq in the official repositories so I resorted to compiling it on the TX2.
libzmq can be found at https://github.com/zeromq/libzmq.git.
The install text file offers easy instructions to build the library. Upon completion of the compilation and running:
pip install --upgrade --force-reinstall --no-cache-dir jupyter

My jupyter notebook is fully functional.

@tuannv-github
Copy link

tuannv-github commented Oct 22, 2018

I think you have to install ZeroMQ lib list first
sudo apt-get install libzmq3-dev

@panzerfrank
Copy link

Worked for me Thanks tuanngo0898 and dltmdwls25. Most grateful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants