ERROR: TA_Lib-0.4.10-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
时间: 2023-07-28 20:07:57 浏览: 49
这个错误通常是由于您下载的 TA-Lib 库版本与您的 Python 版本不兼容所导致的。您可以尝试下载与您的 Python 版本相对应的 TA-Lib 库版本,或者尝试使用 pip 安装 TA-Lib 库。在命令行中输入以下命令:
```
pip install TA-Lib
```
如果您使用的是 Anaconda,则可以尝试使用以下命令:
```
conda install -c quantopian ta-lib
```
希望这可以帮助您解决问题。
相关问题
WARNING: Skipping 0.4.10 as it is not installed.
This warning message indicates that the version 0.4.10 of a package is not installed in your environment and is being skipped. It is nothing to worry about if you don't need that specific version of the package. If you do need it, you can try installing it using a package manager like pip.
python画旋转六边形_超简单-C3实现旋转六边形
好的,以下是使用C3.js库实现旋转六边形的Python代码:
```python
from IPython.display import HTML
import json
# 定义数据
data = {
"size": {
"width": 600,
"height": 600
},
"data": {
"sequence": [
{"x": 300, "y": 300},
{"x": 400, "y": 300},
{"x": 450, "y": 350},
{"x": 400, "y": 400},
{"x": 300, "y": 400},
{"x": 250, "y": 350},
{"x": 300, "y": 300}
]
},
"layers": {
"marks": {
"marktype": "line",
"color": "steelblue",
"x": {"field": "data.sequence.x"},
"y": {"field": "data.sequence.y"},
"tension": 0.8,
"tooltip": {"content": "data"},
"transform": {
"rotate": {"field": "datum.index", "mult": 60, "offset": 30}
}
}
}
}
# 将数据转换为JSON字符串
json_str = json.dumps(data)
# 使用C3.js库绘制可视化图表
HTML("""
<div id='chart'></div>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.10/c3.min.css" rel="stylesheet">
<script>
var chart = c3.generate({
bindto: '#chart',
data: """ + json_str + """,
});
</script>
""")
```
运行代码后,将会生成一个旋转六边形的可视化图表。其中,数据的定义包括了六边形的顶点坐标,以及C3.js库的图表配置信息。在图表的配置信息中,我们使用了`transform`属性实现了六边形的旋转效果。