vn.py官网
开源量化社区
Member
加入于:
帖子: 34
声望: 0

ubuntu上install不行 有问题 因为python3.8 所以用pyenv安装了python3.7.9 然后切换到3.7.9 install.sh时候报错
按网上查询 安装了libffi-dev还是不行(可能是针对系统原有的3.8安装了依赖库,而对虚拟环境3.7.9无效)

ERROR: Command errored out with exit status 1:
command: /home/leo/.pyenv/versions/3.7.9/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0w86r5q1/futu-api_1d324bda6873434da3b4be0561df70a1/setup.py'"'"'; file='"'"'/tmp/pip-install-0w86r5q1/futu-api_1d324bda6873434da3b4be0561df70a1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-yzeqoffa
cwd: /tmp/pip-install-0w86r5q1/futu-api_1d324bda6873434da3b4be0561df70a1/
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/leo/.pyenv/versions/3.7.9/lib/python3.7/site-packages/setuptools/init.py", line 18, in <module>
from setuptools.dist import Distribution
File "/home/leo/.pyenv/versions/3.7.9/lib/python3.7/site-packages/setuptools/dist.py", line 32, in <module>
from setuptools import windows_support
File "/home/leo/.pyenv/versions/3.7.9/lib/python3.7/site-packages/setuptools/windows_support.py", line 2, in <module>
import ctypes
File "/home/leo/.pyenv/versions/3.7.9/lib/python3.7/ctypes/init.py", line 7, in <module>
from _ctypes import Union, Structure, Array

ModuleNotFoundError: No module named '_ctypes'
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Administrator
avatar
加入于:
帖子: 4749
声望: 278

新手不建议用虚拟环境,要自己手动解决很多依赖,Ubuntu上的3.8应该也可以直接安装vn.py的

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

沪公网安备 31011502017034号