0

I am having trouble properly installing and using scientific DOE python module described here:

The page claims to be able to run the DOE module by navigating to your folder location and running it by the command python main.py. However when I do this I get an error that reads:

File "main.py", line 21
    print("\nAnalyzing input and building the DOE...",end=' ')
                                                         ^
SyntaxError: invalid syntax

I do not know that to do at this point.

Cleb
  • 25,102
  • 20
  • 116
  • 151
eni
  • 65
  • 1
  • 1
  • 8

1 Answers1

1

Your Python version is too old. That print() statement leads to a SyntaxError in Python 2.x (even up to Python 2.7), but works in Python 3.x.

Note that Python 2.x is outdated.

One way to fix this problem is to get an updated Python distribution would be to install Anaconda, but there are plenty of other options.

jjramsey
  • 1,131
  • 7
  • 17