gpt4 book ai didi

python - 尝试 pip install pystan 时版本冲突 6 1.5.2 与 6>=1.6.0'

转载 作者:行者123 更新时间:2023-12-01 03:02:01 25 4
gpt4 key购买 nike

安装 pystan 时出现以下错误。

$ pip install pystan

我有 ubuntu 14.04 和 python 2.7我在其他类似的线程上尝试了一些提到的解决方案,但所有这些解决方案最终都归结为错误代码 1 错误。

Downloading/unpacking pystan
Downloading pystan-2.15.0.0.tar.gz (25.4MB): 25.4MB downloaded
Running setup.py (path:/tmp/pip_build_ali/pystan/setup.py) egg_info for package pystan
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_ali/pystan/setup.py", line 239, in <module>
setup_package()
File "/tmp/pip_build_ali/pystan/setup.py", line 211, in setup_package
dist = setup(**metadata)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 321, in __init__
_Distribution.__init__(self, attrs)
File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
self.finalize_options()
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 389, in finalize_options
ep.require(installer=self.fetch_build_egg)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2324, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 859, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (six 1.5.2 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.6.0'))
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip_build_ali/pystan/setup.py", line 239, in <module>

setup_package()

File "/tmp/pip_build_ali/pystan/setup.py", line 211, in setup_package

dist = setup(**metadata)

File "/usr/lib/python2.7/distutils/core.py", line 111, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 321, in __init__

_Distribution.__init__(self, attrs)

File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__

self.finalize_options()

File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 389, in finalize_options

ep.require(installer=self.fetch_build_egg)

File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2324, in require

items = working_set.resolve(reqs, env, installer, extras=self.extras)

File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 859, in resolve

raise VersionConflict(dist, req).with_context(dependent_req)

pkg_resources.VersionConflict: (six 1.5.2 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.6.0'))

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_ali/pystan
Storing debug log for failure in /tmp/tmpXPB8XS

有什么想法可能是错的吗?

最佳答案

pkg_resources.VersionConflict: (six 1.5.2 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.6.0'))

这表明所需的 six 软件包已过时,您需要在安装库之前升级它。

pip install --upgrade six

关于python - 尝试 pip install pystan 时版本冲突 6 1.5.2 与 6>=1.6.0',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43706148/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com