I'm using GRASS GIS 7.0.3, the default python version is python2.7. I need python3.5 for my own module. After I edit the 'etc/env.bat' file to change GRASS_PYTHON and PYTHONHOME to the location of my new python .exe file and the new python directory. Then I run GRASS GIS, but I got the following error:
File "C:\Program Files\GRASS GIS 7.0.3\etc\grass70.py", line 251 os.makedir(tmpdir, 0700) SyntaxError: invalid token
Am I do it in the right way?
-
Please always include errors as text rather than just pictures of errors. That way they are available to future searches.PolyGeo– PolyGeo ♦2016年11月02日 04:22:32 +00:00Commented Nov 2, 2016 at 4:22
1 Answer 1
From REQUIREMENTS to compile GRASS GIS 7
Python>= 2.6 (for temporal framework, scripts, wxGUI, and ctypes interface) Note: Python 3 support is still in development
and
-
According to the last link, I modify the init.py "import core" to "import .core". I got error "no module named builtin". I think the idea is GRASS haven't support Python3 yet.Rui Wang– Rui Wang2016年11月02日 20:13:54 +00:00Commented Nov 2, 2016 at 20:13
-