树莓派为啥不支持android

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了树莓派为啥不支持android相关的知识,希望对你有一定的参考价值。

参考技术A 树莓派(raspberry pi)是英国产品,默认键盘布局是英国(GB),我们用的键盘布局一般是美国(US)的更改键盘布局,命令如下:sudo dpkg-reconfigure keyboard-configuration进入后,选通用的101键PC键盘本文来自电脑网 按tab键,到OK,按Enter确定在键盘layout选择中,选Other 然后在选项中,选English(US)按tab键,到OK,按Enter确定再选English(US, alternative international)树莓派(raspberry pi)学习4: 更改键盘布局按tab键,到OK,按Enter确定然后一路按OK退出后,重启系统sudo reboot重新启动时,由于修改了键盘布局,在读取键盘布局的阶段会比平常慢一些OK了, 终于可以打出所有字符了这一点,linux还是不太方便,windows比较人性化一些

为啥 Jupyter notebook 不能在我的树莓派上运行

【中文标题】为啥 Jupyter notebook 不能在我的树莓派上运行【英文标题】:Why isn't Juypter notebook working on my raspberry pi为什么 Jupyter notebook 不能在我的树莓派上运行 【发布时间】:2020-07-14 11:41:02 【问题描述】:

我在全新安装的 debian for pi 上安装了 Jupyter notebook。我让它在以前的安装中完美运行。我不明白为什么它不适用于此安装。内核不会启动。

@raspberrypi:~ $ jupyter notebook
[I 14:14:54.030 NotebookApp] Serving notebooks from local directory: /home/pi
[I 14:14:54.031 NotebookApp] The Jupyter Notebook is running at:
[I 14:14:54.031 NotebookApp] http://localhost:8888/?token=3d0f751a532a4e1a3744a1a49701fbde9a17d1d95fda43ca
[I 14:14:54.032 NotebookApp]  or http://127.0.0.1:8888/?token=3d0f751a532a4e1a3744a1a49701fbde9a17d1d95fda43ca
[I 14:14:54.033 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:14:54.249 NotebookApp] 

    To access the notebook, open this file in a browser:
        file:///home/pi/.local/share/jupyter/runtime/nbserver-837-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=3d0f751a532a4e1a3744a1a49701fbde9a17d1d95fda43ca
     or http://127.0.0.1:8888/?token=3d0f751a532a4e1a3744a1a49701fbde9a17d1d95fda43ca
[I 14:15:26.196 NotebookApp] Kernel started: 9c892a78-7ef2-4d36-9649-d46392e26bb7
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 49, in <module>
    from .terminal.embed import embed
  File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 18, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 20, in <module>
    from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/usr/local/lib/python3.7/dist-packages/prompt_toolkit/shortcuts/__init__.py)
[I 14:15:32.162 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 49, in <module>
    from .terminal.embed import embed
  File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 18, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 20, in <module>
    from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/usr/local/lib/python3.7/dist-packages/prompt_toolkit/shortcuts/__init__.py)
[I 14:15:35.190 NotebookApp] KernelRestarter: restarting kernel (2/5), keep random ports

$

有人能帮我解释一下我的情况吗?

【问题讨论】:

【参考方案1】:

使用下面的 cmd 将 ~/.local/share/jupyter 目录的所有权从 root 更改为 pi:

sudo chown -R pi:pi ~/.local/share/jupyter

【讨论】:

【参考方案2】:

如果您的内核无法启动或显示任何对我有用的问题,请运行此命令 "pip3 install --force-reinstall --upgrade jupyter"

【讨论】:

以上是关于树莓派为啥不支持android的主要内容,如果未能解决你的问题,请参考以下文章

如果节点这样做,为啥 verdaccio 不支持 arm 处理器

玩转树莓派——支持PS3手柄

重磅!树莓派正式支持谷歌深度学习框架TensorFlow

树莓派无线网卡监听模式

树莓派pico如何连接遥控接收器?

树莓派3连接显示器问题,显示器是以前的方电脑,用的HDMI转VGA接口。