在Ubuntu20.04 python3.8上安装Abe包时,出现错误:NameError:name'execfile'未定义。我尝试使用python2.7成功地安装了它。有没有办法在python3.8下安装它
执行python3.8 setup.py install
发生错误NameError:未定义名称“execfile”
我将execfile()
更改为exec()
,并得到一个错误NameError:name'Abe'未定义
{
from distutils.core import setup
execfile("Abe/version.py")
setup(
name = "Abe",
version = __version__,
requires = ['Crypto.Hash'],
packages = ["Abe"],
package_data = {'Abe': ['htdocs/*']},
author = "John Tobey",
author_email = "John.Tobey@gmail.com",
url = "https://github.com/jtobey/bitcoin-abe",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Topic :: Database :: Front-Ends',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
'Topic :: Office/Business :: Financial',
'Topic :: Security :: Cryptography',
#'Topic :: Software Development :: Libraries :: Python Modules',
],
description = "Abe: a free block chain browser for Bitcoin-based currencies.",
long_description = """Abe reads the Bitcoin block chain from disk, loads
it into a database, indexes it, and provides a web interface to search
and navigate it. Abe works with several Bitcoin-derived currencies,
including Namecoin and LiteCoin.
Abe draws inspiration from Bitcoin Block Explorer (BBE,
http://blockexplorer.com/) and seeks some level of compatibility with
it but uses a completely new implementation.""",
)
目前没有回答
相关问题 更多 >
编程相关推荐