我正在尝试安装该软件包。但是有错误。我该如何解决?
C:\WINDOWS\system32>python -m pip install zopyx.convert2
Collecting zopyx.convert2
Using cached zopyx.convert2-2.4.6.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Admin\AppData\Local\Temp\pip-build-e90y11sx\zopyx.convert2\setup.py", line 17, in <module>
desc = unicode(file(os.path.join('docs', 'source', 'README.rst')).read().strip(), 'utf-8')
NameError: name 'unicode' is not defined
答案 0 :(得分:2)
在我看来,这个库自2012年以来一直没有更新,与Python 3不兼容,并且他们没有在pypi元数据中正确指出。
source code is here,如果找不到替代库,您可以自己将其更新为python3,并提出拉取请求或分叉。