我这边使用的是AWS的免费主机,大家有信用卡可以去申请一个,免费期为一年。
1 解决编译问题和部分依赖
sudo apt-get install build-essential
sudo apt-get install libpq-dev python-dev
2. 下载miniconda
wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
3. 安装miniconda,根据提示走,该打yes的地方一定要打yes,否则就失败了
bash Miniconda3-latest-Linux-x86_64.sh
4. 将默认python切换为Conda Python
source ~.bashrc
最终在前面出现一个base就算成功了
5. 安装git:
sudo apt install git
6. 使用git 命令将远程代码拉下来
git clone https://github.com/xxx/vnpy.git
cd vnpy