在 Spyder 中打開交互顯示以下內容:Python 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 18:37:09)[MSC v.1500 64 bit (AMD64)]Type "copyright", "credits" or "license" for more information.IPython 5.7.0 -- An enhanced Interactive Python.? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.object? -> Details about 'object', use 'object??' for extra details.如您所見,它仍然顯示 Python 2.7.15。如何更改 Spyder 使用的 Python 版本?
刪除了 Python 2.7.15 并安裝了 3.7.1
慕尼黑5688855
2021-08-17 16:19:51