跳到主要內容

發表文章

目前顯示的是 5月, 2019的文章

Jetson Nano 安裝Scipy 錯誤解決方法

 sudo pip3 install scipy 遇到如下錯誤 wheel-l3exl0id --python-tag cp36:   ERROR: Running from scipy source directory.   lapack_opt_info:   lapack_mkl_info:   customize UnixCCompiler     libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']     NOT AVAILABLE      openblas_lapack_info:   customize UnixCCompiler   customize UnixCCompiler     libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/aarch64-linux-gnu']     NOT AVAILABLE     atlas_3_10_threads_info:   Setting PTATLAS=ATLAS   customize UnixCCompiler     libraries lapack_atlas not found in /usr/local/lib   customize UnixCCompiler     libraries tatlas,tatlas not found in /usr/local/lib   customize UnixCCompiler     libraries lapack_atlas not found in /usr/lib   customize UnixCCompiler     libraries tatlas,tatlas not found in /usr/lib   customize UnixCCompiler     libraries lapack_atlas not found in /usr/

Jetson Nano 安裝Tensorflow 會踩到的坑 ImportError: cannot import name 'main'

Jetson Nano 買來一定會安裝Tensorflow, 就一定會踩到坑, 以下帶你減少採坑 安裝一些套件 $ sudo apt-get install libhdf5-serial-dev hdf5-tools 安裝pip3 $ sudo apt-get install python3-pip 安裝更多的套件 $ pip3 install -U pip  $ sudo apt-get install zlib1g-dev zip libjpeg8-dev libhdf5-dev $ sudo pip3 install -U numpy grpcio absl-py py-cpuinfo psutil portpicker grpcio six mock requests gast h5py astor termcolor  Traceback (most recent call last):   File "/usr/bin/pip3", line 9, in <module>     from pip import main ImportError: cannot import name 'main' 通常安裝到這裡就會出現一個錯誤,這是一個PIP CODE的BUG 所以要改CODE,透過Nano文字編輯器來修改。 這時候如果你還沒有裝NANO,請裝NANO , 爛梗再來一次jetson nano沒有裝nano所以裝nano sudo apt-get update sudo apt-get install nano    使用nano 來修改/usr/bin/pip3 這個文件 sudo nano /usr/bin/pip3                                                                                      把原本的內容 全部幹掉。然後改成下面的,或是只改紅色的地方也可以 #!/usr/bin/python3 # GENERATED BY DEBIAN import sys # Run the main entry point, simil

Jetson Nano 安裝 VNC Vino,一定會遇到No such key “enabled”錯誤,解法:

Jetson Nano 安裝好的時候,內建文件教導你使用VINO 當作VNC 如下圖 當你跟著說明操作時 gsettings set org.gnome.Vino enabled true 會得到一個錯誤  No such key “enabled” 很明顯官方的工程師自己一定沒有式過,我可以理解你的長官一定是告訴你很快就要賣了,先上了再說。 遇到這個問題的時候如下解決 1. 因為還沒有nano這個文字編輯套件,所以裝一下,jetson nano沒有裝nano所以裝nano sudo apt-get update sudo apt-get install nano 2 .用Nano編輯org.gnome.Vino.gschema.xml 這個檔案 sudo nano /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml 加入這個KEY     <key name='enabled' type='b'>       <summary>Enable remote access to the desktop</summary>       <description>         If true, allows remote access to the desktop via the RFB         protocol. Users on remote machines may then connect to the         desktop using a VNC viewer.       </description>       <default>false</default>     </key> Ctrl + X 離開,並且選擇Y存檔   如下畫面 3 . 編譯一下 sudo glib-compile-schemas /usr/share/glib-2.0/schemas 4.已經正常修復