在集群上跑的python程序,出现import错误。
折腾之后发现,该程序要在python2下运行,由于修改了pythonpath,python2去调用python3的module,出现import问题
最后的解决办法是在该程序init文件中使用sys.path.remove(),让其回到python2的路径中。
在集群上跑的python程序,出现import错误。
折腾之后发现,该程序要在python2下运行,由于修改了pythonpath,python2去调用python3的module,出现import问题
最后的解决办法是在该程序init文件中使用sys.path.remove(),让其回到python2的路径中。