PlatformIO与Atom上的Python 2冲突

问题描述 投票:0回答:1

如果我想在ATOM中运行Python,我必须始终禁用PlatformIO并重新启动ATOM,所以它工作正常。我设法避免这种痛苦,指出我安装的Python包运行Python 3而不是标准的Python(Python 2),但我真的希望我能理解发生了什么,所以我可以随意使用任何版本,因为我需要。关于这个问题的任何亮点?

我的系统是Linux(薄荷19)谢谢!

python-2.7 python-3.6 linuxmint platformio
1个回答
0
投票

听起来你的默认Python是2.7,但是一切都是针对Python 3安装的,而Atom总是使用Python 2.您可以通过更改Atom使用的默认Python来解决这个问题。

对于一次性使用,尝试How to configure Atom to run Python3 scripts?并永久更改Python for Atom的版本,看看How to setup Atom's script to run Python 3.x scripts? May the combination with Windows 7 Pro x64 be the issue?(尽管标题中的Windows 7 Pro,该解决方案一般适用于Atom)。

© www.soinside.com 2019 - 2024. All rights reserved.