目前分類:Python (13)

瀏覽方式: 標題列表 簡短摘要

最近在研究 IoT SiteWise 要如何跟 IoT Core 或其他服務整合

就嘗試了在 win10 + python 3.9.7 環境下跑 tutorial 

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

最近用 pyyaml 想要讀/寫 yaml 檔案

沒想到居然遇到問題 yaml.constructor.ConstructorError: could not determine a constructor for the tag '!Ref'

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

在 mac os 環境下執行 pyinstaller -F main.py 出現這個錯誤

OSError: Python library not found: libpython3.8m.dylib, libpython3.8.dylib, Python, .Python

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

from tornado.httpclient import AsyncHTTPClient
from tornado.httpclient import HTTPRequest

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

from argparse import ArgumentParser
parser = ArgumentParser()

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

env LDFLAGS="-L$(brew --prefix openssl)/lib" \
    CFLAGS="-I$(brew --prefix openssl)/include" \

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

cd 到想要分享的目錄

然後 python -m SimpleHTTPServer

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

httplib.HTTPConnection 的 timeout

文件寫預設用 global timeout

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

顯示 http request detail

import requests

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

原來版本太舊的 boto 會有不支援 region 的問題

但是卻沒有看到什麼錯誤...

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

使用 pip 安裝 package 時遇到

There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping

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

環境遇到

IOError: decoder jpeg not available

1.檢查一下機器有沒有安裝 Pillow 需要的 package

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

最近遇到 pip install 的問題

Ignoring indexes: https://pypi.python.org/simple

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