简体   繁体   English

更改运行Spyder的python版本

[英]Change python version running the Spyder

I installed Spyder when I had python 2.7, now I have newer versions of python, eg, python 3.5. 我在安装python 2.7时安装了Spyder,现在安装了较新版本的python,例如python 3.5。 I tried to install 'seaborn' package, which is installed successfully, but apparently, for python 3.5. 我尝试安装“ seaborn”软件包,该软件包已成功安装,但显然适用于python 3.5。 Therefore, the package is not recognized in Spyder where uses python 2 as the interpreter. 因此,在使用python 2作为解释器的Spyder中无法识别该程序包。 Changing the interpreter in the setting does not work. 在设置中更改解释器无效。

Does anybody know how to change python version in Spyder? 有人知道如何在Spyder中更改python版本吗?

Try: 尝试:

pip2 install seaborn

or 要么

pip2.7 install seaborn

this should install seaborn for the python 2.7 interpreter. 这应该为python 2.7解释器安装seaborn。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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