我无法在python中使用openpyxl
。编译一个简单的python程序时,我收到以下错误。
from openpyxl.reader import excel
from openpyxl import workbook
from openpyxl import cell
from openpyxl import worksheet
wb = excel.load_workbook(filename = 'res.xlsx', use_iterators=True)
ws = wb.get_active_sheet
错误:
Traceback (most recent call last):
File "C:\Python27\openpyexcel.py", line 1, in <module>
from openpyxl.reader import excel
.....
from jdcal import (
ImportError: No module named jdcal
在为openpyxl运行setup.py时,我们收到以下错误:
Processing dependencies for openpyxl==2.1.4
Searching for jdcal
Reading https://pypi.python.org/simple/jdcal/
Download error on https://pypi.python.org/simple/: Tunnel connection failed: 407 Proxy Authentication Required -- Some packages may not be found!
No local packages or download links found for jdcal
error: Could not find suitable distribution for Requirement.parse('jdcal')
请你帮忙,我在哪里犯错误。
答案 0 :(得分:-1)
jdcal
库需要使用日期,如果正确安装openpyxl,则会自动安装:pip install openpyxl
。