1 Star 0 Fork 1.1K

bright_heng/vn.py

forked from vn.py官方/vn.py 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.sh 955 Bytes
一键复制 编辑 原始数据 按行查看 历史
Edanflame 提交于 2022-04-13 09:13 . [Mod] 更新linux安装脚本
#!/usr/bin/env bash
python=$1
pypi_index=$2
shift 2
[[ -z $python ]] && python=python
[[ -z $pypi_index ]] && pypi_index=https://pypi.org/simple
$python -m pip install --upgrade pip wheel --index $pypi_index
# Get and build ta-lib
function install-ta-lib()
{
# install numpy first
$python -m pip install numpy==1.21.5 --index $pypi_index
pushd /tmp
wget https://pip.vnpy.com/colletion/ta-lib-0.4.0-src.tar.gz
tar -xf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr/local
make -j1
make install
popd
$python -m pip install ta-lib==0.4.24 --index $pypi_index
}
function ta-lib-exists()
{
$prefix/ta-lib-config --libs > /dev/null
}
ta-lib-exists || install-ta-lib
# Install Python Modules
$python -m pip install -r requirements.txt --index $pypi_index
# Install local Chinese language environment
locale-gen zh_CN.GB18030
# Install VeighNa
$python -m pip install . --index $pypi_index
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bright_heng/vnpy.git
git@gitee.com:bright_heng/vnpy.git
bright_heng
vnpy
vn.py
master

搜索帮助