[英]ImportError: No module named 'jsonconv'
I am running Python 3.4 我正在运行Python 3.4
Did pip install json2html with no errors. pip安装json2html没有错误吗?
However, when I execute "import json2html" I got: 但是,当我执行“ import json2html”时,我得到了:
>>> import json2html
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python34\lib\site-packages\json2html-0.3-py3.4.egg\json2html\__init__.py", line 6, in <module>
ImportError: No module named 'jsonconv'
>>>
please help suggest.. 请帮忙建议..
It seems this library is not python3-compatible. 似乎该库与python3不兼容。
Error was caused by this line in the __init__.py file: 错误是由__init__.py文件中的这一行引起的:
from jsonconv import *
While, instead, it should be: 而应改为:
from .jsonconv import *
Try this fork instead: https://github.com/YAmikep/json2html 尝试使用此fork: https : //github.com/YAmikep/json2html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.