[問題] Makefile using Python

看板Python作者 (....)時間10年前 (2015/11/23 22:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
makefile 在這邊 https://gist.github.com/anonymous/70598c01176435fb4819 https://github.com/barronh/geos2cmaq, 我根據這個下去做 如果我把testrun放到geos2cmaq下面 或是把PYTHONPATH的路徑改到 /usr/bin/python error message: rm -rf ./test mkdir -p test; python -m geos2cmaq -t tracerinfo.dat -s smv2.log -m ./ -c cb05cl_ae6_aq ./test /usr/bin/python: No module named geos2cmaq make: *** [src] Error 1 如果我把 geos2cmaq放到 testrun下面 error message rm -rf ./test mkdir -p test; python -m geos2cmaq -t tracerinfo.dat -s smv2.log -m ./ -c cb05cl_ae6_aq ./test /usr/bin/python: geos2cmaq is a package and cannot be directly executed make: *** [src] Error 1 我如果直接在Python下面可以 import geos2cmaq 有沒有什麼建議? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 152.2.72.239 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1448289221.A.407.html
文章代碼(AID): #1MKoF5G7 (Python)
文章代碼(AID): #1MKoF5G7 (Python)