VeighNa量化社区
你的开源社区量化交易平台 | vn.py | vnpy
Member
avatar
加入于:
帖子: 1
声望: 0

我使用 Window 中 WSL2 Ubuntu 22.04 的环境, 新建了一个 conda env vn,python=3.12。
然后 follow 用户文档中的 Ubuntu 的安装指南,用源码安装 vnpy4.1
sudo bash install.sh

发现安装时 找不到 python3, 但是 conda env 中 python 3 是存在的, 是不是用了 sudo 的原因导致了以root 用户的 PATH 去查找 python 3 ?
如果不用 sudo 话,安装过程中也会出现 权限不够的问题。 所以,感觉 install.sh 和使用 conda env 之间有些操作上的不兼容么 ?

/home/peace/code/vnpy
install.sh: line 28: python3: command not found
Generating locales (this might take a while)...
zh_CN.GB18030... done
Generation complete.
install.sh: line 40: python3: command not found

Member
avatar
加入于:
帖子: 1909
声望: 142
  1. 不要使用conda

  2. 如果要使用特定版本的Python安装(例如python 3.12):

sudo bash install.sh python3.12

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】