您好,我正尝试在我的Mac上安装ta-lib (使用conda),我收到了不兼容错误。我在上面检查了其他问题,但没有得到答案。有人能帮帮忙吗?
(Pk) prasads-imac:Pk prasadkamath$ conda install -c quantopian ta-lib
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages. failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- ta-lib -> python[version='2.7.*|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with each other:
Package wheel conflicts for:
python=3.7 -> pip -> wheel
ta-lib -> python[version='>=3.5,<3.6.0a0'] -> pip -> wheel
Package pip conflicts for:
ta-lib -> python[version='>=3.5,<3.6.0a0'] -> pip
python=3.7 -> pip
Package ca-certificates conflicts for:
python=3.7 -> openssl[version='>=1.1.1c,<1.1.2a'] -> ca-certificates
ta-lib -> python[version='>=3.5,<3.6.0a0'] -> ca-certificates
Package certifi conflicts for:
python=3.7 -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
ta-lib -> python[version='>=3.5,<3.6.0a0'] -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
Package setuptools conflicts for:
python=3.7 -> pip -> setuptools
ta-lib -> python[version='>=3.5,<3.6.0a0'] -> pip -> setuptools发布于 2020-01-21 11:17:55
您当前使用的环境似乎是python V3.7。
此公式的conda公式不包含python 3.7的TA-lib更新版本。相反,您可以使用python3.5创建一个新环境,并在终端中运行相同的代码。
或者,您也可以在当前环境中安装pip,然后按照以下网站上的说明进行操作:https://github.com/mrjbq7/ta-lib。
https://stackoverflow.com/questions/58994020
复制相似问题