發表文章

目前顯示的是有「python」標籤的文章

Create Httpd service with Python

圖片
@Python3 -3.6.8  python3 -m http.serve python3 -m http.server 8080 --bind 127.0.0.1 @Python2  python -m simpleHTTPServer references https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server  https://docs.python.org/3/library/http.server.html

Enable the IPython Clusters tab in Jupyter Notebook

圖片
downloaded and preinstalled python3 from https://www.python.org/downloads/   @ on MS Windows 1. python get-pip.py             2. pip install jupyter 3. pip install --upgrade ipyparallel 4. jupyter serverextension enable --py ipyparallel --user     jupyter nbextension install --py ipyparallel --user     jupyter nbextension enable --py ipyparallel --user 5. ipcluster nbextension enable 6. jupyter notebook # on Windows path: C:\Users\%USERNAME%\AppData\Local\Programs\Pytho n\Python36\Scripts\jupyter-notebook.exe @ on CentOS Linux 8 I. pip install jupyter II. pip install --upgrade ipyparallel III. jupyter-serverextension enable ipyparallel --py --user jupyter-nbextension install ipyparallel --py --user jupyter nbextension enable ipyparallel --py --user IV. ipcluster nbextension enable VI. jupyter-notebook&   @ on Mac OS X (if python 3.8 installed) Path of jupyter-note...

NVIDIA CUDA tool + Python + Tensorflow/Tensorflow-gpu + Theano + pytorch 安裝順序 on MS Windows 10

圖片
1. 安裝Nvidia驅動程式 https://www.nvidia.com.tw/Download/index.aspx?lang=tw   2. 安裝python 3.6.x版本 https://www.python.org/downloads/release/python-368/     安裝好設定環境變數PATH 3. 安裝 pip 版本 https://bootstrap.pypa.io/get-pip.py 開始->cmd -> 執行 python get-pip.py      安裝後 升級 pip, python -m pip install --upgrade pip 4. 安裝 visualstudio 2015 或以上 https://visualstudio.microsoft.com/vs/older-downloads/?rr=https%3A%2F%2Fwww.google.com%2F 5. 安裝 cuda toolkit https://developer.nvidia.com/cuda-downloads 6. 透過 pip 安裝 jupyter    開始->cmd -> pip3 install jupyter 利用 where 指令找到 jupyter 位置並新增至桌面為捷徑,再加上notebook參數,就可直接開啟 jupyter notebook 7. 透過pip 安裝 tensorflow    開始->cmd -> pip3 install tensorflow->pip install tensorflow-gpu 8.透過 pip 安裝 theano   開始->cmd -> pip3 install theano 9. 透過pip 安裝 pytorch(https://pytorch.org/)   開始->cmd-> pip3 install  https:...