<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Klang安装使用文档（Windows）]]></title><description><![CDATA[<p dir="auto">按照Readme中的流程进行操作：</p>
<pre><code>git clone https://github.com/asmcos/Klang
cd Klang
pip3 install -r requirements.txt 
python3 setup.py install
</code></pre>
<p dir="auto">pip3 install -r requirements.txt 时可能会遇到TA-Lib的相关报错，以下是原因与解决方案：</p>
<p dir="auto">TA-Lib需要C++14.0的生成工具。</p>
<ol>
<li>
<p dir="auto">此处<a href="https://download.visualstudio.microsoft.com/download/pr/05734053-383e-4b1a-9950-c7db8a55750d/fbfc005ace3e6b4990e9a4be0fa09e7face1af5ee1f61035c64dbc16c407aeda/vs_BuildTools.exe" rel="nofollow ugc">下载</a>，下载完成后执行程序，选择安装生成工具：<img src="/assets/uploads/files/1653315425690-51d7487f-8e4f-475d-aa8c-b524971a438a-image.png" alt="51d7487f-8e4f-475d-aa8c-b524971a438a-image.png" class=" img-responsive img-markdown" /></p>
</li>
<li>
<p dir="auto">然后选择使用桌面的C++开发之后，等待安装完成。<br />
<img src="/assets/uploads/files/1653315461214-d4c591bc-1f4b-4dea-ada9-0dde1e62cc1c-image.png" alt="d4c591bc-1f4b-4dea-ada9-0dde1e62cc1c-image.png" class=" img-responsive img-markdown" /></p>
</li>
</ol>
<p dir="auto">生成工具安装完成后再次执行pip，如果依然报错，请使用手动安装方式。</p>
<ol>
<li>
<p dir="auto">下载适合版本的<a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib" rel="nofollow ugc">TA-Lib</a>，以下为例：”cp310“代表适合python的3.10版本，win_amd64代表适合64位Windows，以此类推，选择适合你的版本：<br />
TA_Lib‑0.4.24‑cp310‑cp310‑win_amd64.whl</p>
</li>
<li>
<p dir="auto">pip install 下载完成后的文件，TA-lib下载问题即可解决。</p>
</li>
</ol>
<p dir="auto">除TA-Lib的安装问题外，还可能遇到由于pip版本过新而导致pip安装失败的问题，报错一般如下：</p>
<pre><code>WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/numpy/
ERROR: Operation cancelled by user
</code></pre>
<p dir="auto">可通过降低pip版本解决，方案如下：</p>
<pre><code>python -m pip install pip==20.2 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
</code></pre>
<p dir="auto">如果在安装使用过程中还遇到了其他问题，可在论坛提出。</p>
]]></description><link>http://localhost:4567/topic/30/klang安装使用文档-windows</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 11:26:36 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/30.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 May 2022 14:26:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Klang安装使用文档（Windows） on Wed, 19 Oct 2022 05:26:15 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow ugc">https://www.lfd.uci.edu/~gohlke/pythonlibs/</a> talib whl地址</p>
]]></description><link>http://localhost:4567/post/107</link><guid isPermaLink="true">http://localhost:4567/post/107</guid><dc:creator><![CDATA[asmcos]]></dc:creator><pubDate>Wed, 19 Oct 2022 05:26:15 GMT</pubDate></item><item><title><![CDATA[Reply to Klang安装使用文档（Windows） on Thu, 26 May 2022 02:40:56 GMT]]></title><description><![CDATA[<p dir="auto">最新的 klang 代码 ，在 <a href="http://github.com/KlangAlpha/klang" rel="nofollow ugc">github.com/KlangAlpha/klang</a></p>
]]></description><link>http://localhost:4567/post/58</link><guid isPermaLink="true">http://localhost:4567/post/58</guid><dc:creator><![CDATA[asmcos]]></dc:creator><pubDate>Thu, 26 May 2022 02:40:56 GMT</pubDate></item></channel></rss>