2015-07-21 46 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和再次打開它。對於那些爲同樣問題而奮鬥的人,只需關閉該程序即可使用!