python
鄭文豪
这个作者很懒,什么都没留下…
展开
-
Install Python 3.7 on Raspberry Pi
文章目录步驟一:更新步驟二:安裝對應的LIB步驟三:下載Python步驟四:解壓縮並且編譯步驟五:安裝步驟六:建立連結步驟七:移除因為安裝所存留的暫存檔步驟八:確定是否成功步驟一:更新sudo apt-get update步驟二:安裝對應的LIBsudo apt-get install -y build-essential tk-dev libncurses5-dev libncurs...原创 2019-02-12 17:22:14 · 6740 阅读 · 2 评论 -
TypeError: unsupported operand types for -=: 'Retry' and 'int'
apt-get remove python-pip python3-pipwget https://bootstrap.pypa.io/get-pip.pypython get-pip.pypython3 get-pip.py原创 2019-04-23 17:25:12 · 4886 阅读 · 0 评论 -
[tensorflow] install tensorboard
文章目录Step 1: 啟動新環境Step 2: 安裝Step 3: 啟動Step 1: 啟動新環境conda activate tensorflow-gpuStep 2: 安裝conda install -c conda-forge tensorboardStep 3: 啟動tensorboard --logdir=D:\tensorflow --host 127.0.0.1...原创 2019-03-28 10:04:18 · 184 阅读 · 0 评论 -
[tensorflow] Placeholder(multi dimension)-撰寫一個99乘法表
文章目录問題程式碼問題撰寫一個99乘法表,利用Placeholder(multi dimension)程式碼#載入tensorflow libimport tensorflow as tf # 宣告placeholder x = tf.placeholder(tf.float32)y = tf.placeholder(tf.float32, shape=(9))z = x...原创 2019-03-28 09:58:42 · 107 阅读 · 0 评论 -
[tensorflow] Placeholder(多維)-撰寫一個99乘法表
文章目录問題程式碼問題撰寫一個99乘法表,利用Placeholder(多維)程式碼#載入tensorflow libimport tensorflow as tf # 宣告placeholder x = tf.placeholder(tf.float32)y = tf.placeholder(tf.float32, shape=(9))z = x*yarr = [i ...原创 2019-03-27 18:24:21 · 173 阅读 · 0 评论 -
python single line foe loop
文章目录問題程式碼問題用一條指令即可以完成loop ,轉寫一個0-10的 array程式碼[i for i in range(0,11)]原创 2019-03-27 18:04:57 · 128 阅读 · 0 评论 -
[tensorflow] Placeholder-撰寫一個99乘法表
文章目录問題程式碼問題撰寫一個99乘法表,利用Placeholder程式碼#載入tensorflow lib#載入tensorflow libimport tensorflow as tf # 宣告placeholder x = tf.placeholder(dtype=tf.int64)y = tf.placeholder(dtype=tf.int64)v = x*y...原创 2019-03-27 17:34:43 · 109 阅读 · 0 评论 -
[tensorflow] Variable-撰寫一個99乘法表
文章目录問題程式碼問題撰寫一個99乘法表,利用for loop程式碼#載入tensorflow libimport tensorflow as tf # 宣告變數 x = tf.Variable(0, dtype=tf.int64)y = tf.Variable(0, dtype=tf.int64)v = tf.Variable(0, dtype=tf.int64)w...原创 2019-03-27 17:14:00 · 144 阅读 · 0 评论 -
[GPU]install tensorflow gpu on jupyter notebook
文章目录Step 1: 啟動新環境Step 2: 安裝ipykernelStep 3: 設定Step 1: 啟動新環境conda activate tensorflow-gpuStep 2: 安裝ipykernelconda install -c anaconda ipykernel Step 3: 設定python -m ipykernel install --user --na...原创 2019-03-27 16:56:26 · 242 阅读 · 0 评论 -
[GPU/CPU] conda insatll tensorflow
文章目录Step 1: 安裝新環境Step 2: 啟動新環境Step 3: 安裝tensorflow-gpuStep 3: 安裝anacondaStep 1: 安裝新環境conda create -n tensorflow-gpu pip python=3.5Step 2: 啟動新環境conda activate tensorflow-gpuStep 3: 安裝tensorflow-...原创 2019-03-27 16:44:10 · 135 阅读 · 0 评论 -
[解決] ImportError: cannot import name main
这里写自定义目录标题問題解決方法問題當執行更新後,即發生悲劇#更新pip install --upgrade pip#安裝xxxpip install xxxImportError: cannot import name main解決方法sudo nano /usr/bin/pip將原来的:sys.exit(main())改成sys.exit(main....原创 2019-02-12 14:11:17 · 327 阅读 · 0 评论 -
[解決]Could not install packages due to an EnvironmentError: [Errno 13] Permission denied
文章目录問題解決方法問題無法安裝package,會出現權限問題pip install <package>Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/opt/python-3.7.0/lib/python3.7/site-pac...原创 2019-02-12 14:45:57 · 23461 阅读 · 0 评论 -
python run get-pip.py use proxy
set http_proxy=http://proxy.myproxy.comset https_proxy=https://proxy.myproxy.compython get-pip.py原创 2019-04-23 17:28:22 · 831 阅读 · 0 评论