我正在尝试安装 GPflow 以下
https://github.com/GPflow/GPflow/blob/master/README.md
我有 Ubuntu 16.04 LTS。
我成功安装了 tensorflow(我运行了一个简单的 python 脚本来测试它并且它有效)。
我从壳里跑
python setup.py develop
它给了我找不到文件 setup.py 的错误。所以我在本地文件夹中克隆了 GPflow git 存储库,然后从我执行的那个文件夹中
sudo python setup.py develop
(我需要使用 sudo 获得访问权限)。但我收到以下错误:
running develop
Traceback (most recent call last):
File "setup.py", line 46, in <module>
'Topic :: Scientific/Engineering :: Artificial Intelligence']
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 971, in run_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/develop.py", line 54, in finalize_options
easy_install.finalize_options(self)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 333, in finalize_options
self.index_url, search_path=self.shadow_path, hosts=hosts,
File "/usr/local/lib/python2.7/dist-packages/setuptools/package_index.py", line 296, in __init__
Environment.__init__(self, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1055, in __init__
self.scan(search_path)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1084, in scan
for dist in find_distributions(item):
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2048, in find_on_path
for item in dists:
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2034, in find_on_path
path_item, entry, metadata, precedence=DEVELOP_DIST
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2463, in from_location
py_version=py_version, platform=platform, **kw
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2442, in __init__
self._version = safe_version(version)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1391, in safe_version
return str(packaging.version.Version(version))
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_vendor/packaging/version.py", line 230, in __init__
self._version.local,
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/_vendor/packaging/version.py", line 353, in _cmpkey
reversed(release),
RuntimeError: maximum recursion depth exceeded
关于如何解决这个问题的任何想法?