即使我将包安装到项目解释器(python文件的解释器也设置为相同的环境),当我尝试导入epipy时Python抛出错误尝试使用绝对导入;从外延进口 *尝试导入特定函数,例如从 epipy import case_tree尝试卸载并重新安装软件包我的代码:将熊猫导入为 pd进口外延我希望导入没有错误的安装包,收到以下错误:/Users/Noelle/Python/stats/bin/python /Users/Noelle/Python/stats/basic_analytics.pyTraceback (most recent call last): File "/Users/Noelle/Python/stats/basic_analytics.py", line 2, in <module> import epipy File "/Users/Noelle/Python/stats/lib/python3.6/site-packages/epipy/__init__.py", line 5, in <module> from .analyses import generation_analysis, reproduction_number, create_2x2 File "/Users/Noelle/Python/stats/lib/python3.6/site-packages/epipy/analyses.py", line 88 print 'Summary of reproduction numbers' ^SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Summary of reproduction numbers')?进程以退出代码 1 结束
添加回答
举报
0/150
提交
取消