Python 的開發過程會經常需要使用 pip 來安裝第三方的套件,但有些套件會跳出error: command 'gcc' failed with exit status 1 這樣的錯誤。
以下是本人使用 MacOS 在安裝爬蟲的 grab 套件時的解決方法,但其他套件也都適用。
閱讀更多»
Python 的開發過程會經常需要使用 pip 來安裝第三方的套件,但有些套件會跳出error: command 'gcc' failed with exit status 1 這樣的錯誤。
以下是本人使用 MacOS 在安裝爬蟲的 grab 套件時的解決方法,但其他套件也都適用。
閱讀更多»“break" ouside the loop
break 不能用來中止 if statement,而是中止 Loop
unindent does not match any outer indentation level
新的 python 語法中,代碼縮進 (indentation) 不支援 Tab 和 Space 混用
name ‘raw_input’ is not defined
python 3 只需要 ‘input‘ 即可,沒有 ‘raw_input’