close

資料來源:https://blog.cavedu.com/2018/09/05/%E7%BF%BB%E8%AD%AF-2018-08-03-%E6%A0%B9%E6%93%9Atensorflow%E5%9C%98%E9%9A%8A%EF%BC%8Ctensorflow-1-9%E6%AD%A3%E5%BC%8F%E6%94%AF%E6%8F%B4%E6%A8%B9%E8%8E%93%E6%B4%BE/

目樹莓派的 TensorFlow 目前只支援 Python 3.4 下的 v1.1.0, ,但最近TensorFlow於2015年首次發佈時,我們希望它是一個「給所有人的開源機器學習框架」。爲要達成這一點,我們需要盡可能讓它在更多人們使用的平台上運作,所以,我們長期以來支援了Linux、MacOS、Windows、iOS及Android等作業系統。然而,儘管許多貢獻者已經貢獻卓越,在Raspberry Pi上運行TensorFlow仍有許多工作需要完成。感謝與Raspberry Pi基金會的合作,我們現在很高興能宣佈:最新的TensorFlow 1.9版,可透過Python的pip套件系統來安裝建置好的二元檔了!若您正使用Raspbian 9(Raspbian stretch),只要從終端機輸入下面這三道指令來安裝它:

(1) sudo apt-get update
(2)sudo apt install libatlas-base-dev

(3)sudo pip3 install tensorflow

接下來,您可在終端機上運作python3,並如同在任何其它平台上一樣使用TensorFlow。下面是一個簡單的hello world範例:

# Python
import tensorflow as tf
tf.enable_eager_execution()
hello = tf.constant(‘Hello, TensorFlow!’)
print(hello)

如果看到以下內容:Hello, TensorFlow!, 那您便可開始編寫TensorFlow的程式。
但我個人安裝並没有成功,但安裝scikit-learn有成功,步驟如下:

  1. sudo apt-get install python3-numpy
  2. sudo apt-get install python3-scipy
  3. sudo apt-get install python3-matplotlib
  4. sudo apt-get install python3-pandas
  5. conda install scikit-learn

How To Install Mahotas

 If you have conda installed, you can install mahotas using the following pair of commands: 
conda config --add channels conda-forge
conda install mahotas
or 
conda install -c https://conda.anaconda.org/conda-forge mahotas

or

pip install -i https://pypi.anaconda.org/sweetser/simple mahotas

or  (offline install)

pip install  mahotas‑1.4.5‑cp36‑cp36m‑win_amd64.whl

資料來源:http://yhhuang1966.blogspot.com/2017/03/python3-scikit-learn.html
https://scikit-learn.org/stable/install.html
https://mahotas.readthedocs.io/en/latest/install.html

 

 

 

arrow
arrow
    全站熱搜

    stanley 發表在 痞客邦 留言(0) 人氣()