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

(base) root@iZbp1i12dakoeme7svx2saZ:~/Desktop/vnpy-2.0.8/examples/vn_trader# python run.py
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

Member
avatar
加入于:
帖子: 3
声望: 0

安装过程中报错如下

Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting PyQt5
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/ec/cc/b727405bc393c0dc1fbb2b928017f9cb6ea8b557070028edf1743ec14689/PyQt5-5.13.2-5.13.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (62.2MB)
|████████████████████████████████| 62.2MB 12.7MB/s
Collecting pyqtgraph
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/cd/ad/307e0280df5c19986c4206d138ec3a8954afc722cea991f4adb4a16337d9/pyqtgraph-0.10.0.tar.gz (1.5MB)
|████████████████████████████████| 1.6MB 14.3MB/s
Collecting qdarkstyle
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/7b/30/b528832a64e09bba180d14219262ed35f611863d032fee468e5686b52e21/QDarkStyle-2.7-py2.py3-none-any.whl (1.2MB)
|████████████████████████████████| 1.2MB 34.2MB/s
Requirement already satisfied: requests in /root/miniconda3/lib/python3.7/site-packages (from -r requirements.txt (line 5)) (2.22.0)
Collecting websocket-client
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/29/19/44753eab1fdb50770ac69605527e8859468f3c0fd7dc5a76dd9c4dbd7906/websocket_client-0.56.0-py2.py3-none-any.whl (200kB)
|████████████████████████████████| 204kB 58.8MB/s
Collecting peewee
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/10/35/696cadad460a16d81e82716d749eaaac5e6ca6fb3b112d0278126f0cb658/peewee-3.12.0.tar.gz (2.3MB)
|████████████████████████████████| 2.3MB 35.1MB/s
Requirement already satisfied: pymysql in /root/miniconda3/lib/python3.7/site-packages (from -r requirements.txt (line 8)) (0.9.3)
Collecting psycopg2
Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/84/d7/6a93c99b5ba4d4d22daa3928b983cec66df4536ca50b22ce5dcac65e4e71/psycopg2-2.8.4.tar.gz (377kB)
|████████████████████████████████| 378kB 59.9MB/s
ERROR: Command errored out with exit status 1:
command: /root/miniconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t_gzsypa/psycopg2/setup.py'"'"'; file='"'"'/tmp/pip-install-t_gzsypa/psycopg2/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-install-t_gzsypa/psycopg2/pip-egg-info
cwd: /tmp/pip-install-t_gzsypa/psycopg2/
Complete output (23 lines):
running egg_info
creating /tmp/pip-install-t_gzsypa/psycopg2/pip-egg-info/psycopg2.egg-info
writing /tmp/pip-install-t_gzsypa/psycopg2/pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-install-t_gzsypa/psycopg2/pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-install-t_gzsypa/psycopg2/pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-install-t_gzsypa/psycopg2/pip-egg-info/psycopg2.egg-info/SOURCES.txt'

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source.  Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.

For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).

----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Generating locales (this might take a while)...
zh_CN.GB18030... done

Administrator
avatar
加入于:
帖子: 4997
声望: 292

Ubuntu操作系统没安装中文语言吧?教程中有提到

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

沪公网安备 31011502017034号