Closed kuanwen-C closed 2 months ago
我在我的本地刪掉環境,把本地python版本拉到3.11然後處新run poetry install實驗會不會跟本地python版本有關係 see my result
後來啊後來發現裝完之後環境裡面的python確實是3.10所以應該跟當前用的python 無關,感覺確實是照著toml安裝,這個問題應該跟poetry env設定有關please ref here :ref
所以poetry shell之後透過python --version 顯示出來的python版本跟toml檔沒對到的話是正常的嗎
yeah 我有看過這個 但我試了一下發現沒什麼用欸
Solved: 因為poetry 找不到你的python路徑 poetry env use 指定路徑可以解決
後來還有遇到這個問題 The current project could not be installed: No file/folder found for package autostocktrading If you do not want to install the current project use --no-root
solved: 發覺是project目錄的問題,在.toml pacakge=[{include="",from=""}] 解決
👍 done
@nush-cc 本地install poetry 環境toml 裡面記錄的python版本是3.10但為何poetry install bin裡面的python是3.12