前言
這是我之前在研究利用 cython 來做 python加密,
發現當 python 執行時發生以下問題的解決辦法。
error: no commands supplied
解決方法
此為 cython 指令執行時,flags 沒有正確被下的問題,
(下面 Reference 的解法剛好不適用於本人碰到的情況)
實際上的指令執行程式碼:
python setup.py build_ext --inplace
而我之前執行時只有下: (這是錯的!!!)
python setup.py
Reference
https://www.itread01.com/content/1545101537.html
https://superuser.com/questions/222957/no-commands-supplied-error-when-executing-a-python-script-on-ubuntu/222958