[英]Import Error on installed package (wikitools)
I have installed wikitools
using pip
, but when I write: 我已经使用pip
安装了wikitools
,但是在我写的时候:
from wikitools import wiki, api
in Python I get the following message: 在Python中,我收到以下消息:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
from wikitools import wiki, api
File "C:\Python35\lib\site-packages\wikitools\__init__.py", line 19, in <module>
from wiki import *
ImportError: No module named 'wiki'
What's the problem here? 这是什么问题 I'm using Python 3.5. 我正在使用Python 3.5。
According to this page , wikitools
is not compatible with Python 3: 根据此页面 , wikitools
与Python 3不兼容:
Requirements 要求
- Python 2.5+. Python 2.5以上版本。 Not compatible with Python 3; 与Python 3不兼容; not tested on older versions 未经较旧版本测试
- Bob Ippolito's simplejson module, if using Python < 2.6 http://pypi.python.org/pypi/simplejson Bob Ippolito的simplejson模块,如果使用Python <2.6 http://pypi.python.org/pypi/simplejson
- To upload files or import XML, you need Chris AtLee's poster package http://pypi.python.org/pypi/poster 要上传文件或导入XML,您需要Chris AtLee的海报包http://pypi.python.org/pypi/poster
- The wiki this is used for should be running at least MediaWiki version 1.13 and have the API enabled. 用于其的Wiki应该至少运行MediaWiki版本1.13并启用API。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.