[問題] 發佈至heroku時被告知版本不支援

看板Python作者 (水躍魚)時間5年前 (2018/10/15 01:41), 編輯推噓2(201)
留言3則, 3人參與, 5年前最新討論串1/1
不知道能不能在這邊問QAQ截圖在最後 我試著要把檔案發佈至heroku時 偵測python時,出現 Python app detected remote: ! Heroku supports runtime versions python-3.7.0, python-3.6.6 and python-2.7.15. remote: ! You are using python-3.5.2, which is unsupported. 看起來是說我python版本只有3.5.2 可是我輸入 $ python -V 卻是出現 Python 3.7.0 請問是出了什麼問題?先謝謝了 http://i.imgur.com/SV7tRlu.jpg
----- Sent from JPTT on my Xiaomi MI 8. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.139.148.30 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1539538908.A.11E.html

10/15 03:52, 5年前 , 1F
把runtime 直接改成3.7試試呢
10/15 03:52, 1F

10/15 07:17, 5年前 , 2F
是不是有安裝兩個python?
10/15 07:17, 2F

10/15 12:30, 5年前 , 3F
是runtime沒改到+沒重置,才一直鬼打牆,謝謝回覆
10/15 12:30, 3F
文章代碼(AID): #1Rmt_S4U (Python)