TA的每日心情 | 无聊 2017-10-29 12:40 |
---|
签到天数: 164 天 [LV.7]常住居民III
|
发表于 2018-4-21 15:35:41
|
显示全部楼层
我已经使用PIP把所有需要的模块都装上了,但是在运行时出现这个提示,请问这是怎么回事呢。
Warning (from warnings module):
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\h5py\__init__.py", line 36
from ._conv import register_converters as _register_converters
FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
Traceback (most recent call last):
File "C:\Users\lenovo\Downloads\ExcelPython-master\simulation.py", line 13, in <module>
sht = xw.Book.caller().sheets[0]
File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\xlwings\main.py", line 554, in caller
raise Exception('Workbook.caller() must not be called directly. Call through Excel or set a mock caller '
Exception: Workbook.caller() must not be called directly. Call through Excel or set a mock caller first with Book.set_mock_caller(). |
|