我是Manpy的新手。我尝试按照文档中的说明进行操作,安装时出现一些错误。
python setup.py install
)中的安装脚本。错误:
File "c:\users\sito\appdata\local\programs\python\python37-32\lib\site-packages\dream-0.0.1-py3.7.egg\dream\simulation\applications\DemandPlanning\AllocManagement_Hybrid.py", line 38 print G.priorityList ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(G.priorityList)?
File "c:\users\sito\appdata\local\programs\python\python37-32\lib\site-packages\dream-0.0.1-py3.7.egg\dream\simulation\applications\DemandPlanning\AllocationForecast_IP.py", line 150 print 'lp results', item['sp'], allQty, LpStatus[prob.status], sum(MA_var[ma].varValue* G.BatchSize[ma][week] for ma in MAlist) ^ SyntaxError: invalid syntax
File "c:\users\sito\appdata\local\programs\python\python37-32\lib\site-packages\dream-0.0.1-py3.7.egg\dream\simulation\applications\DemandPlanning\AllocationRoutine_ForecastGA.py", line 51 print 'item', item['orderID'] ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('item', item['orderID'])?
File "c:\users\sito\appdata\local\programs\python\python37-32\lib\site-packages\dream-0.0.1-py3.7.egg\dream\simulation\applications\DemandPlanning\Allocation_ACO.py", line 138 print 'Termination Criterion Reached' ... error: Setup script exited with error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https:⁄/visualstudio.microsoft.com/downloads/