[英]How to Install freqrade in Anaconda?
I have been trying many methods to install freqtrade in anaconda but I am always getting an error.我一直在尝试多种方法在 anaconda 中安装 freqtrade,但我总是遇到错误。 The most simple code that I thought would work is:
我认为最简单的代码是:
pip install freqtrade
It only gives me the following error:它只会给我以下错误:
Building wheel for TA-Lib (setup.py): started
Building wheel for TA-Lib (setup.py): finished with status 'error'
Successfully built sdnotify yarl
Failed to build py-find-1st blosc TA-Lib
How can I install freqtrade directly from my Jupyter Notebook?如何直接从我的 Jupyter Notebook 安装 freqtrade?
I have looked at the installation instructions on: https://www.freqtrade.io/en/2020.7/installation/#windows - Also with no success.我查看了以下安装说明: https://www.freqtrade.io/en/2020.7/installation/#windows - 也没有成功。
Thank you!谢谢!
TA-Lib is a library written in C. TA-Lib 是用 C 编写的库。 It must be built on PC to prepare a binary
.dll
or .so
files.它必须在 PC 上构建以准备二进制
.dll
或.so
文件。 The TA-Lib that freqtrade is trying to install is just a Python wrapper for this library. freqtrade 尝试安装的 TA-Lib 只是该库的 Python 包装器。 That's why it fail to build if original C library can't be found on PC.
这就是如果在 PC 上找不到原始 C 库,则无法构建的原因。 You better first build and install ta-lib from C sources, then
pip install ta-lib
to make sure it works.你最好先从 C 源构建和安装 ta-lib,然后
pip install ta-lib
以确保它工作。 And then pip install freqtrade
然后
pip install freqtrade
I was able to install TA-Lib and freqtrade on Jupyter Notebook with following:我能够在 Jupyter Notebook 上安装 TA-Lib 和 freqtrade,具体如下:
!wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
!tar -xzf ta-lib-0.4.0-src.tar.gz
%cd ta-lib/
!./configure --prefix=$HOME
!make
!make install
!TA_LIBRARY_PATH=~/lib TA_INCLUDE_PATH=~/include pip install ta-lib
!pip install freqtrade
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.