PIPENV安裝
pip install --user pipenv
PIPENV進入 SHELL
pipenv shell
PIPENV 生成 requirements.txt 檔
pipenv run pip freeze >> requirements.txt
PIPENV安裝
pip install --user pipenv
PIPENV進入 SHELL
pipenv shell
PIPENV 生成 requirements.txt 檔
pipenv run pip freeze >> requirements.txt
安裝:
#git clone https://github.com/Pithikos/python-websocket-server
下載到目錄中
系統需要使用websocket模組:
sudo apt-get install python3-websocket
設定:
在server.py 裡改這一行,讓大家可以連線進來 WebsocketServer(PORT,”0.0.0.0″)
使用:
python3 server.py
程式位置:
https://github.com/Pithikos/python-websocket-server
https://projects.raspberrypi.org/en/projects/getting-started-with-minecraft-pi/5
Jupyter-設定密碼:
#以下先在JUPYTER中執行後產出密碼
from notebook.auth import passwd
passwd()
c.NotebookApp.notebook_dir = ‘/home/pi/project’
c.NotebookApp.open_browser = False
c.NotebookApp.ip = ‘*’
c.NotebookApp.password = ‘sha1:2fcf50cbab99:9f4273b304cca073073808e5f7678964d4bc4c49’
最近因為小朋友的Minecraft 伺服器損壞,所以重新安裝了新的UBUNTU SERVER 18.04版,之前我們都是使用的是CENTOS 7.0版本,居然遇上了許多軟體不包含在預設的安裝包裡面,所以我們只好另外幫他加入其他的安裝來源.
編輯更新來源
#sudo vi /etc/apt/sources.list
加入桌面版的來源:
#ubuntu Desktop Taiwan Source
deb http://tw.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://tw.archive.ubuntu.com/ubuntu/ bionic universe
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://tw.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
之後就可以加入你要的Python 程式:
#sudo apt install python-pip
終於可以把一些常用的程式可以重新運作了.
最近許多Youtuber被字型公司控告侵權.
也就是說只要使用在圖像或影片不能用於未授權的字型製作字幕.
否則會以每個月2萬元的費用支付給字型創作公司.
所以建議大家可以下載以政府提供的字體:
CNS11643中文標準交換碼全字庫(簡稱全字庫)
https://data.gov.tw/dataset/5961
這個是全字庫的字體,可以在政府開放平台中下載取得.
因為沒有做用微軟作業系統創作影片,所以應該沒有被告的風險.
最近許多Youtuber被字型公司控告侵權.
也就是說只要使用在圖像或影片不能用未授權的字型製作字幕.
否則會以每個月2萬元的費用支付給字型創作公司.
目前微軟字形,新細明體和標楷體字形.
授權公司基於在微軟平台輸出的產品進行控告,但非微軟平台使用就須要付費.
例如在Android或其他非微軟平台就須要支付費用.
所以建議大家可以下載以下的字體:
https://www.google.com/get/noto/#sans-hant
因為沒有做用微軟作業系統創作影片,所以應該沒有被告的風險.
終於說好的TensorFlow for Raspberry Pi終於來了.
pi@raspberrypi:~ $ sudo apt-get install libatlas-base-dev
[略]
pi@raspberrypi:~ $ pip3 install tensorflow
[略]
2018年在RS下單的樹苺派生產改成Made In China!
最近一次在RS下單樹苺派產地由日本已經改為中國製造了.
Made in China !
中國ELEMENT 14的Raspberry PI3在掏寶 的價格只有英國版的85折左右.
所以如果有要買Raspberry PI3應該可以直接考慮買中國版就好了的