我正在尝试将gdal
下载到我的项目中。我有python 2.7和python3。我已经将python可执行路径设置为npm config。但是我仍然面临着python版本的问题。
我收到错误消息
File "../glob-files.py", line 19
print 'no argument'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(t 'no argument')?
我已经使用npm config set python /path/to/executable/python2.7
命令设置了npm config。但我面临着同样的问题。
配置列表
; cli configs
metrics-registry = "http://registry.npmjs.org/"
scope = ""
user-agent = "npm/5.6.0 node/v8.11.3 win32 x64"
; userconfig C:\Users\username\.npmrc
python = "C:\\Users\\username\\.windows-build-tools\\python27\\python"
registry = "http://registry.npmjs.org/"
strict-ssl = false
; globalconfig C:\Users\username\AppData\Roaming\npm\etc\npmrc
; builtin config undefined
prefix = "C:\\Users\\username\\AppData\\Roaming\\npm"
; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Users\username\Projects\Renewables\OneWind\Studio\Ui\StudioUI
; HOME = C:\Users\username
; "npm config ls -l" to show all defaults.