使用os.system的PTVS失败

时间:2015-07-21 11:30:54

标签: python visual-studio azure ptvs

我遇到Visual Studio问题。 我已经在我的项目中设置了包括Platformio在内的Python环境中的所有内容,我想使用它。

当我这样做的时候 os.system("platformio init")它失败并产生此错误:

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

我在python库搜索路径中添加了platformio文件夹,但仍然没有成功。

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

请任何人,帮助!

1 个答案:

答案 0 :(得分:1)

添加PATH环境变量后,我需要做的就是关闭Visual Studio并再次打开它。对于那些在同一个问题上挣扎的人,只需关闭程序就可以了!

相关问题