這里是一個非常新的Python學習者。嘗試構建我的第一個項目,但 numpy 遇到很多問題。當我嘗試運行該程序時,它返回以下錯誤: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned我想我已經在 VS Code 上正確安裝了所有內容,盡管弄清楚這一點也很令人頭痛。在谷歌搜索錯誤時,不斷出現有關加速的內容,但我不知道如何刪除或卸載它......甚至不知道它是什么。任何提示都會很有幫助!如果需要更多信息,請告訴我。這是我的第一個問題。謝謝你!:)
1 回答

慕虎7371278
TA貢獻1802條經驗 獲得超4個贊
發生這種情況時你使用的是 python 3.9 嗎?
如果您不需要python3.9,那么我建議您通過運行以下命令為您的虛擬環境指定較低版本的 Python:python3.<insert lower version here> -m venv venv
例如,如果您想使用 python3.8:python3.8 -m venv venv
安裝完必要的程序后依賴關系和事情應該有效。
如果你需要(?。?/strong> python3.9:
轉到 venv/lib/python3.9/site-packages/numpy 并打開根init .py 文件。
轉到第 270 行并注釋掉第 270 - 287 行。這是 macOS darwin 拋出運行時錯誤的地方,它似乎與 python 環境有關。
盡管我會推薦第一個解決方案,但這也應該有效。
添加回答
舉報
0/150
提交
取消