2015-07-21 82 views
0

我遇到了Visual Studio问题。 我在我的项目中设置了Python环境中的所有设置,其中包括我希望使用的Platformio。使用os.system的PTVS失败

当我做 os.system("platformio init")失败并产生此错误:

'platformio' is not recognized as an internal or external command, operable program or batch file.

我加入了platformio文件夹中的Python库搜索路径,但仍然没有成功。

我没有Python或platformio安装在本地计算机上,只有在PTVS。 python程序工作正常,没有安装在本地机器上,所以我想尽可能保持这种方式。

请大家帮忙!

回答

1

加入PATH环境变量后,所有我需要做的就是关闭Visual Studio和再次打开它。对于那些为同样问题而奋斗的人,只需关闭该程序即可使用!