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

Building wheels for collected packages: vnpy
Building wheel for vnpy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /root/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-6j86cjas/setup.py'"'"'; file='"'"'/tmp/pip-req-build-6j86cjas/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdistwheel -d /tmp/pip-wheel-vk1cbhg
cwd: /tmp/pip-req-build-6j86cjas/
Complete output (1877 lines):
/root/miniconda3/lib/python3.7/site-packages/psycopg2/init.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi.
""")
/root/miniconda3/lib/python3.7/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'index-url' will not be supported in future versions. Please use the underscore name 'index_url' instead
% (opt, underscore_opt)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/vnpy
copying vnpy/init.py -> build/lib.linux-x86_64-3.7/vnpy
creating build/lib.linux-x86_64-3.7/vnpy/app
copying vnpy/app/init.py -> build/lib.linux-x86_64-3.7/vnpy/app
creating build/lib.linux-x86_64-3.7/vnpy/event
copying vnpy/event/init.py -> build/lib.linux-x86_64-3.7/vnpy/event
copying vnpy/event/engine.py -> build/lib.linux-x86_64-3.7/vnpy/event
creating build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/converter.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/database.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/setting.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/init.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/rqdata.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/event.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/engine.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/utility.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/gateway.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/constant.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/app.py -> build/lib.linux-x86_64-3.7/vnpy/trader
copying vnpy/trader/object.py -> build/lib.linux-x86_64-3.7/vnpy/trader
creating build/lib.linux-x86_64-3.7/vnpy/chart
copying vnpy/chart/init.py -> build/lib.linux-x86_64-3.7/vnpy/chart
copying vnpy/chart/item.py -> build/lib.linux-x86_64-3.7/vnpy/chart
copying vnpy/chart/manager.py -> build/lib.linux-x86_64-3.7/vnpy/chart
copying vnpy/chart/axis.py -> build/lib.linux-x86_64-3.7/vnpy/chart
copying vnpy/chart/base.py -> build/lib.linux-x86_64-3.7/vnpy/chart
copying vnpy/chart/widget.py -> build/lib.linux-x86_64-3.7/vnpy/chart
creating build/lib.linux-x86_64-3.7/vnpy/api
copying vnpy/api/init.py -> build/lib.linux-x86_64-3.7/vnpy/api
creating build/lib.linux-x86_64-3.7/vnpy/rpc
copying vnpy/rpc/init.py -> build/lib.linux-x86_64-3.7/vnpy/rpc
creating build/lib.linux-x86_64-3.7/vnpy/gateway
copying vnpy/gateway/init.py -> build/lib.linux-x86_64-3.7/vnpy/gateway
creating build/lib.linux-x86_64-3.7/vnpy/database
copying vnpy/database/init.py -> build/lib.linux-x86_64-3.7/vnpy/database
creating build/lib.linux-x86_64-3.7/vnpy/app/risk_manager
copying vnpy/app/risk_manager/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/risk_manager
copying vnpy/app/risk_manager/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/risk_manager
creating build/lib.linux-x86_64-3.7/vnpy/app/option_master
copying vnpy/app/option_master/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/option_master
copying vnpy/app/option_master/time.py -> build/lib.linux-x86_64-3.7/vnpy/app/option_master
copying vnpy/app/option_master/base.py -> build/lib.linux-x86_64-3.7/vnpy/app/option_master
copying vnpy/app/option_master/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/option_master
copying vnpy/app/option_master/algo.py -> build/lib.linux-x86_64-3.7/vnpy/app/option_master
creating build/lib.linux-x86_64-3.7/vnpy/app/rpc_service
copying vnpy/app/rpc_service/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/rpc_service
copying vnpy/app/rpc_service/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/rpc_service
creating build/lib.linux-x86_64-3.7/vnpy/app/market_radar
copying vnpy/app/market_radar/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/market_radar
copying vnpy/app/market_radar/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/market_radar
creating build/lib.linux-x86_64-3.7/vnpy/app/portfolio_manager
copying vnpy/app/portfolio_manager/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/portfolio_manager
copying vnpy/app/portfolio_manager/base.py -> build/lib.linux-x86_64-3.7/vnpy/app/portfolio_manager
copying vnpy/app/portfolio_manager/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/portfolio_manager
creating build/lib.linux-x86_64-3.7/vnpy/app/script_trader
copying vnpy/app/script_trader/cli.py -> build/lib.linux-x86_64-3.7/vnpy/app/script_trader
copying vnpy/app/script_trader/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/script_trader
copying vnpy/app/script_trader/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/script_trader
creating build/lib.linux-x86_64-3.7/vnpy/app/cta_backtester
copying vnpy/app/cta_backtester/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/cta_backtester
copying vnpy/app/cta_backtester/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/cta_backtester
creating build/lib.linux-x86_64-3.7/vnpy/app/paper_account
copying vnpy/app/paper_account/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/paper_account
copying vnpy/app/paper_account/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/paper_account
creating build/lib.linux-x86_64-3.7/vnpy/app/chart_wizard
copying vnpy/app/chart_wizard/init.py -> build/lib.linux-x86_64-3.7/vnpy/app/chart_wizard
copying vnpy/app/chart_wizard/engine.py -> build/lib.linux-x86_64-3.7/vnpy/app/chart_wizard

Member
avatar
加入于:
帖子: 84
声望: 1

gcc -pthread -B /root/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ivnpy/api/ctp/include -Ivnpy/api/ctp/vnctp -I/root/miniconda3/include/python3.7m -c vnpy/api/ctp/vnctp/vnctptd/vnctptd.cpp -o build/temp.linux-x86_64-3.7/vnpy/api/ctp/vnctp/vnctptd/vnctptd.o -std=c++17 -O3 -Wno-delete-incomplete -Wno-sign-compare
gcc: error: vnpy/api/ctp/vnctp/vnctptd/vnctptd.cpp: No such file or directory

error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /root/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-6j86cjas/setup.py'"'"'; file='"'"'/tmp/pip-req-build-6j86cjas/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-4bqd8wmw/install-record.txt --single-version-externally-managed --compile --install-headers /root/miniconda3/include/python3.7m/vnpy Check the logs for full command output.
(base) root@linux-yuanhui:~/vnpy/vnpy-2.3.0#

Member
avatar
加入于:
帖子: 84
声望: 1

gcc -pthread -B /root/miniconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ivnpy/api/ctp/include -Ivnpy/api/ctp/vnctp -I/root/miniconda3/include/python3.7m -c vnpy/api/ctp/vnctp/vnctptd/vnctptd.cpp -o build/temp.linux-x86_64-3.7/vnpy/api/ctp/vnctp/vnctptd/vnctptd.o -std=c++17 -O3 -Wno-delete-incomplete -Wno-sign-compare
gcc: error: vnpy/api/ctp/vnctp/vnctptd/vnctptd.cpp: No such file or directory

error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for vnpy
Running setup.py clean for vnpy
Failed to build vnpy
Installing collected packages: vnpy
Running setup.py install for vnpy ... error
ERROR: Command errored out with exit status 1:
command: /root/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-6j86cjas/setup.py'"'"'; file='"'"'/tmp/pip-req-build-6j86cjas/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-4bqd8wmw/install-record.txt --single-version-externally-managed --compile --install-headers /root/miniconda3/include/python3.7m/vnpy
cwd: /tmp/pip-req-build-6j86cjas/
Complete output (1875 lines):
/root/miniconda3/lib/python3.7/site-packages/psycopg2/init.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi.
""")

Administrator
avatar
加入于:
帖子: 5078
声望: 293

psycopg2编译失败,请另外手动安装吧

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

沪公网安备 31011502017034号