Python 如何使用Chocolate在Windows上安装PhoneGap?
我不熟悉Node或Python,但我使用过Composer和Gem。安装页面显示 我安装了Python 如何使用Chocolate在Windows上安装PhoneGap?,python,cordova,npm,phonegap-plugins,Python,Cordova,Npm,Phonegap Plugins,我不熟悉Node或Python,但我使用过Composer和Gem。安装页面显示 我安装了python2,我似乎拥有它 C:\>py --version Python 2.7.11 我也试过了 C:\>npm install -g phonegap --python py 但它也给出了错误 gyp ERR! configure error gyp ERR! stack Error: Python executable "true" is v, which is not suppo
python2
,我似乎拥有它
C:\>py --version
Python 2.7.11
我也试过了
C:\>npm install -g phonegap --python py
但它也给出了错误
gyp ERR! configure error
gyp ERR! stack Error: Python executable "true" is v, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
Windows 8.1,x64打开powershell:PS>rm$ENV:chocolateyInstall\lib\python*-recurse-force然后手动安装python,并将c:\python27\python.exe复制到c:\ProgramData\chocolate\bin\@OzBob,这样就避免了使用包管理器的全部原因。哦,如果我们有一个可以使用的话!我对整个节点命令行phonegap之类的东西感到非常痛苦。我现在在试Xamarin。
C:\>npm install -g phonegap --python py
gyp ERR! configure error
gyp ERR! stack Error: Python executable "true" is v, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
C:\>npm -v
3.3.12