-
git clone git@gitee.com:vnpy/vnpy.git 下载安装
-
sh install_osx.sh #就遇到了问题
install_osx.sh: line 23: `install-ta_lib': not a valid identifier
-
(python27) Mkpro:vnpy xx$ git diff install_osx.sh
diff --git a/install_osx.sh b/install_osx.sh
index 083797c6..c16aeb3e 100755
--- a/install_osx.sh
+++ b/install_osx.sh
@@ -10,7 +10,7 @@ shift 2
$python -m pip install --upgrade pip setuptools wheel
# Get and build ta-lib
-function install-ta-lib()
+function install_ta_lib()
{
pushd /tmp
curl https://pip.vnpy.com/colletion/ta-lib-0.4.0-src.tar.gz --output ta-lib-0.4.0-src.tar.gz
@@ -21,11 +21,11 @@ function install-ta-lib()
make install
popd
}
-function ta-lib-exists()
+function ta_lib_exists()
{
ta-lib-config --libs > /dev/null
}
-ta-lib-exists || install-ta-lib
+ta_lib_exists || install_ta_lib
调整 变量带“-”的中划线为"_"下划线,再执行 sh install_osx.sh 搞定
vnpy安装中遇到的坑
最新推荐文章于 2024-05-31 14:58:55 发布