# -*- coding: utf-8 -*-
"""
Created on Thu May 5 16:35:46 2022
@author: Lenovo
"""
import os
os.system('E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\1smoothingdata.py')
os.system('E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\2normalization.py')
os.system('E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\3fittingfunction.py')
os.system('E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\4corrected.py')
os.system('E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\5error_evaluation.py')
报错:
Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 8.3.0 -- An enhanced Interactive Python.
runfile('E:/AIRCAS/B科研论文专利/4投稿/数据处理/6untifyrun.py', wdir='E:/AIRCAS/B科研论文专利/4投稿/数据处理')
Traceback (most recent call last):
File "E:\AIRCAS\B科研论文专利\4投稿\数据处理\1smoothingdata.py", line 75, in <module>
main()
File "E:\AIRCAS\B科研论文专利\4投稿\数据处理\1smoothingdata.py", line 41, in main
smoothed_intensities(collected_data_dir,smoothed_dir)
File "E:\AIRCAS\B科研论文专利\4投稿\数据处理\1smoothingdata.py", line 69, in smoothed_intensities
df.to_excel(smoothed_dir + '\\' + a + '_smoothed.xlsx',index = False)
File "C:\Python27\ArcGIS10.5\lib\site-packages\pandas\core\frame.py", line 1414, in to_excel
excel_writer = ExcelWriter(excel_writer, engine=engine)
File "C:\Python27\ArcGIS10.5\lib\site-packages\pandas\io\excel.py", line 713, in __init__
if not openpyxl_compat.is_compat(major_ver=self.openpyxl_majorver):
File "C:\Python27\ArcGIS10.5\lib\site-packages\pandas\compat\openpyxl_compat.py", line 27, in is_compat
import openpyxl
ImportError: No module named openpyxl
Traceback (most recent call last):
File "E:\AIRCAS\B科研论文专利\4投稿\数据处理\3fittingfunction.py", line 20, in <module>
import matplotlib.pyplot as plt
File "C:\Python27\ArcGIS10.5\lib\site-packages\matplotlib\pyplot.py", line 114, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "C:\Python27\ArcGIS10.5\lib\site-packages\matplotlib\backends\__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
ImportError: No module named matplotlib_inline.backend_inline
...
...
...
ImportError: No module named matplotlib_inline.backend_inline
怎么办呢?知道的同志可否私信一下解决方案? 如果没有更新解决方案,就是说明还没有解决。
更新: 报错原因:语法错误。 os.system(‘python path\.xx.py’)中忘记写python了,粗心大意,改正:
import os
os.system('python E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\1smoothingdata.py')
os.system('python E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\2normalization.py')
os.system('python E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\3fittingfunction.py')
os.system('python E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\4corrected.py')
os.system('python E:\\AIRCAS\\B科研论文专利\\4投稿\\数据处理\\5error_evaluation.py')
则,正确执行,不报错。
runfile('E:/AIRCAS/B科研论文专利/4投稿/数据处理/6untifyrun.py', wdir='E:/AIRCAS/B科研论文专利/4投稿/数据处理')
|