跳到主要內容

發表文章

目前顯示的是 2019的文章

nvidia jetson nano 開啟VNC步驟

sudo apt-get update sudo apt-get install nano sudo nano /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml Add this 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> sudo glib-compile-schemas /usr/share/glib-2.0/schemas gsettings set org.gnome.Vino enabled true gsettings set org.gnome.Vino prompt-enabled false gsettings set org.gnome.Vino require-encryption false # Reboot the system so that the settings take effect sudo reboot /usr/lib/vino/vino-server

Coral EDGE TPU USB USB Accelerator jetson 安裝完之後出現錯誤

安裝Coral USB Accelerator TPU 後執行範例程式 出現 python3 classify_image.py \ --model ~/Downloads/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \ --label ~/Downloads/inat_bird_labels.txt \ --image ~/Downloads/parrot.jpg ModuleNotFoundError: No module named '_edgetpu_cpp_wrapper' 執行以下 sudo cp /usr/local/lib/python3.6/dist-packages/edgetpu/swig/_edgetpu_cpp_wrapper.cpython-35m-aarch64-linux-gnu.so /usr/local/lib/python3.6/dist-packages/edgetpu/swig/_edgetpu_cpp_wrapper.so  即可以解決這個問題 should work. Even using python 3.6 the edgetpu_cpp_wrapper.cpython-35m-... file worked as opposed 來源出處於 https://github.com/f0cal/google-coral/issues/7

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.已經正常修復

股票學習文章列表

抓取歷史股票 Python新手教學(1)用爬蟲爬全球股價! Python新手教學2全球指數一次抓 Python新手教學3全球指數歷史數據/ Python新手教學4相關性分析/ 抓取裡使股票方法2 fix-yahoo-finance 官網 PYTHON用fix-yahoo-finance下載YAHOO股市資料(上) PYTHON用fix-yahoo-finance下載YAHOO股市資料(下) 將歷史資料轉換成技術曲線 安裝TiLab最簡單的方式 下載輪子 pip3 install .\TA_Lib-0.4.17-cp36-cp36m-win_amd64.whl 簡單利用 Python 計算158種技術指標   一些文章 巨量資料教我們的: 一命二運三風水。 畫圖介紹文章 完整的範例

RTX2080ti Linux ubuntu 18.04 驅動程式與CUDA安裝紀錄 Nvidia Docker 安裝

因為很雷所以做個紀錄 一開始確認顯示卡的驅動,在設定裡我們可以看到  繪圖: llvmpipe (LLVM 6.0, 256 bits) 代表現在沒有驅動 先到Nvidia官網下載 驅動程式  如果已經安裝失敗的可以用如下指令先移除 nvidia-uninstall 接著開始安裝下載的驅動程式 sudo chmod +x NVIDIA-Linux-x86_64-410.93.run sudo ./NVIDIA-Linux-x86_64-410.93.run 看到如下畫面 這裡就是最雷的地方了,如果驅動程式出現如下畫面 The target kernel has CONFIG_MODULE_SIG set, which means that it supports cryptographic signatures on kernel modules. On some systems, the kernel may refuse to load modules without a valid signature from a trusted key. This system also has UEFI Secure Boot enabled; many distributions enforce module signature verification on UEFI systems when Secure Boot is enabled. Would you like to sign the NVIDIA kernel module? 這代表BIOS 有啟動 安全啟動,這將會導致安裝失敗,必須按照如下步驟然後 關閉安全開機才能成功 關閉安全開機才能成功 關閉安全開機才能成功 完成之後 接著重開機 如果沒有關閉BIOS 的安全啟動,重開機之後還是這樣的絕望畫面,顯示卡依然沒有安裝成功 各家主機板的 security boot disable 有所不同,這裡可以幫助你關閉該死的security boot disable

Google play 強制API 等級 26 Xamarin解決方法 強制跳出視窗取得權限

你的應用程式目前的目標 API 等級是 24,但最低目標 API 等級必須為 26,才能確保應用程式採用最新的 API,讓安全性與執行效能達到最佳狀態。請將最低目標 API 等級調整為 26。 天啊Google 硬起來了,強制APP的目標版本一定要26 (Android 8.0)  ,瘋狂的 8.0 高版本 Xamarin 開發的權限在AndroidManifest.xml 幾乎完全失效,就算有寫權限還是沒開,幹。 變得必須要強制跳出使用者點選同意的視窗,才能取得權限 這時候解救方法就是 先在專案按下右鍵,選擇 [管理NuGet套件] 搜尋  Xamarin.Android.Support.v7.AppCompat 如果遇到如下錯誤 嚴重性 程式碼 說明 專案 檔案 行 隱藏項目狀態 錯誤 無法安裝封裝 'Xamarin.Android.Support.v7.AppCompat 28.0.0'。您正嘗試將此封裝安裝到以 'MonoAndroid,Version=v5.1' 為目標的專案,但該封裝不包含任何與架構相容的組件參考或內容檔。如需詳細資訊,請連絡封裝作者。 0 請[ 專案\屬性 ]更改如下地方,需超越Android 6.0, 且需要重新啟動 Visual Studio 重要 如下程式碼可以開啟強制取得權限,可加於OnCreate中 const int RequestLocationId = 0;  string[] PermissionsLocation =                 {                     Android.Manifest.Permission.AccessCoarseLocation,                     Android.Manifest.Permission.AccessFineLocation                 };                 ActivityCompat.RequestPermissions(this,PermissionsLocation, Requ