简体   繁体   中英

Removed Python 2.7.15 and installed 3.7.1, but Spyder remains python 2.7.15

Opening an interactive in Spyder shows the following:

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.

As you can see, it still shows Python 2.7.15. How do I change the Python version that Spyder uses?

First of all I'd need more information in order to give you directions. Are you using Windows, Mac or Linux?

Why is it important? Because Mac and Linux already have a native python 2, that might be conflicting.

Again, since we're talking about Anaconda, it works as a Virtual Environment, and thus can contain specific libs and other components not available on your computer, so you should install python 3 directly there.

Try this: How do I upgrade to Python 3.6 with conda?

在 Anaconda 提示中升级你的 python 版本

conda update python

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM