anaconda 创建 vnpy 虚拟环境
conda create -n vnpy python=3.10.8
(base) gaoju@gaoju-macbook ~ % conda-env list
# conda environments:
#
base * /opt/anaconda3
vnpy /opt/anaconda3/envs/vnpy
(base) gaoju@gaoju-macbook ~ %
(base) gaoju@gaoju-macbook ~ %
(base) gaoju@gaoju-macbook ~ %
(base) gaoju@gaoju-macbook ~ % conda activate vnpy
(vnpy) gaoju@gaoju-macbook ~ %
(vnpy) gaoju@gaoju-macbook ~ %
(vnpy) gaoju@gaoju-macbook ~ %
(vnpy) gaoju@gaoju-macbook ~ % python --version
Python 3.10.8
安装vnpy 3.4.0
下载源码包
https://github.com/vnpy/vnpy/releases/tag/3.4.0
(vnpy) gaoju@gaoju-macbook ~ % cd vnpy-3.4.0
(vnpy) gaoju@gaoju-macbook vnpy-3.4.0 % ls -l
total 184
-rw-rw-r--@ 1 gaoju staff 19381 10 20 21:14 CHANGELOG.md
-rw-rw-r--@ 1 gaoju staff 1087 10 20 21:14 LICENSE
-rw-rw-r--@ 1 gaoju staff 84 10 20 21:14 MANIFEST.in
-rw-rw-r--@ 1 gaoju staff 17027 10 20 21:14 README.md
-rw-rw-r--@ 1 gaoju staff 18336 10 20 21:14 README_ENG.md
drwxrwxr-x@ 31 gaoju staff 992 10 20 21:14 docs
drwxrwxr-x@ 11 gaoju staff 352 10 20 21:14 examples
-rw-rw-r--@ 1 gaoju staff 303 10 20 21:14 install.bat
-rw-rw-r--@ 1 gaoju staff 955 10 20 21:14 install.sh
-rwxrwxr-x@ 1 gaoju staff 542 10 20 21:14 install_osx.sh
-rw-rw-r--@ 1 gaoju staff 250 10 20 21:14 requirements.txt
-rw-rw-r--@ 1 gaoju staff 1343 10 20 21:14 setup.cfg
-rw-rw-r--@ 1 gaoju staff 39 10 20 21:14 setup.py
drwxrwxr-x@ 7 gaoju staff 224 10 20 21:14 vnpy
(vnpy) gaoju@gaoju-macbook vnpy-3.4.0 % ./install_osx.sh
Requirement already satisfied: pip in /opt/anaconda3/envs/vnpy/lib/python3.10/site-packages (22.2.2)
Collecting pip
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fc39792cd60>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/09/bd/2410905c76ee14c62baf69e3f4aa780226c1bbfc9485731ad018e35b0cb5/pip-22.3.1-py3-none-any.whl
Downloading pip-22.3.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 13.9 kB/s eta 0:00:00
Requirement already satisfied: wheel in /opt/anaconda3/envs/vnpy/lib/python3.10/site-packages (0.37.1)
Collecting wheel
Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: wheel, pip
Attempting uninstall: wheel
Found existing installation: wheel 0.37.1
Uninstalling wheel-0.37.1:
Successfully uninstalled wheel-0.37.1
Attempting uninstall: pip
Found existing installation: pip 22.2.2
Uninstalling pip-22.2.2:
Successfully uninstalled pip-22.2.2
Successfully installed pip-22.3.1 wheel-0.38.4
./install_osx.sh: line 18: ta-lib-config: command not found
==> Downloading https://ghcr.io/v2/homebrew/core/ta-lib/manifests/0.4.0-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/ta-lib/blobs/sha256:6c7ef4d661dfe335e942a2086ff237e13a7205a74
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:6c7ef4d661dfe335e942a2086
######################################################################## 100.0%
==> Pouring ta-lib--0.4.0.monterey.bottle.1.tar.gz
标签:vnpy,macOS,rw,14,10,gaoju,3.4,staff
From: https://www.cnblogs.com/xizhunet/p/16907860.html