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.