Azure ML Studio выполняет скрипт Python SyntaxError: из __future__ импорт должен происходить в начале файла - PullRequest
0 голосов
/ 24 октября 2018

Я выполняю скрипт на python в Azure Machine Learning Studio.У меня есть

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  ----------
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...