0

I recently installed Grass GIS 7 on my Windows 10. Upon loading the program, I receive an error in the terminal window stating:

'This module requires the Numeric/numarray or NumPy module, which could not be imported. It probably is not installed (it's part of the standard Python distribution). See the Numeric Python site (Link) for information on Numeric, numarray, or NumPy not found'.

I installed Anaconda separately which contains the NumPy module, but it is not being recognized by Grass GIS. How do I have Grass recognize this module is already installed on my computer?

I have Windows 10, and both Anaconda and Grass were downloaded as 64-bit. Anaconda downloaded with Python 3.5 and Grass was downloaded with OSGeo64W 7.0.4 version.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
user3052817
  • 245
  • 3
  • 9

2 Answers2

1

I'm guessing that GRASS brings its own Python interpreter with it rather than using the Anaconda version that you installed. As the notes on GRASS and Python remark "On Windows, Python scripts are invoked via %GRASS_PYTHON%, so changing that environment variable will change the interpreter." If you set the GRASS_PYTHON environment variable to point to the Anaconda Python binary you may find things start to work better.

holdenweb
  • 33,305
  • 7
  • 57
  • 77
  • How do I go about setting the GRASS_PYTHON environment variable? And, how do I find the Anaconda Python binary location on my computer? I am brand new to Python and Grass. – user3052817 Jul 25 '16 at 13:50
  • 1
    IIRC in Windows you would use a command like `set GRASS_PYTHON=C:\path\to\Python\interpreter` to set the environment variable. You can [add it to your system settings](http://www.computerhope.com/issues/ch000549.htm) too. You installed Anaconda. Sorry, I have no idea where you put it! – holdenweb Jul 25 '16 at 14:09
0

In OSGeo4W installer, upgrading python-numpy to 1.11.0-1 caused this error in GRASS 7.0.4 for me. Backing python-numpy to 2.7-1.7.0-1 solved the Problem

EFiore
  • 136
  • 4