我正在Azure Machine Learning Studio中执行python脚本。我有
from __future__ import division
在该脚本的第一行中,但是我仍然遇到以下错误。有人可以解释吗?谢谢!
---------- Start of error message from Python interpreter ----------
Caught exception while executing function: Traceback (most recent call last):
File "C:\server\invokepy.py", line 189, in batch
mod = import_module(moduleName)
File "C:\pyhome\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
File "C:\temp\8fcd6421d69f49d7970379b0d793ead3.py", line 16
from __future__ import division
SyntaxError: from __future__ imports must occur at the beginning of the file
Process returned with non-zero exit code 1
---------- End of error message from Python interpreter ----------