如何成功安装hyphython包?

2024-06-16 12:18:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在ubuntu18.04中安装HIVTRACE包,所以我需要安装hyphy python包。我该怎么做

我尝试过安装和更新python和python3。此外,我还尝试使用apt-get安装包。我还从github克隆了hyphy-python目录并执行setup.py。我还安装了Hyphy软件包

  1. sudo apt-get update

sudo apt-get install python-hyphy

  1. git clone https://github.com/veg/hyphy-python

python setup.py install (on Hyphy-python directory)

3.pip3 install hyphy-python

  1. 我得到的错误是:

    The python-hyphy package is not available, but some other package makes reference to it. This may mean that the package is missing, obsolete or only find available from some other source

2.在全球范围内:

cc1plus: warning: unrecognized command line option ‘-Wno-shorten-64-to-32’ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-MW0004/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSQLITE_PTR_SIZE=sizeof(long) -D__UNIX__ -D__MP__ -D__MP2__ -D_SLKP_LFENGINE_REWRITE_ -D__AFYP_REWRITE_BGM__ -D__HEADLESS__ -D_HYPHY_LIBDIRECTORY_="/usr/local/lib/hyphy" -D__HYPHY_64__ -I/home/rafael/hyphy-python/hyphy-src/src/core/include -I/home/rafael/hyphy-python/hyphy-src/src/new/include -I/home/rafael/hyphy-python/hyphy-src/src/gui/include -I/home/rafael/hyphy-python/Link -I/home/rafael/hyphy-python/hyphy-src/contrib -I/home/rafael/hyphy-python/hyphy-src/contrib/SQLite-3.8.2 -I/usr/include/python2.7 -c /home/rafael/hyphy-python/hyphy-src/contrib/SQLite-3.8.2/sqlite3.c -o build/temp.linux-x86_64-2.7/home/rafael/hyphy-python/hyphy-src/contrib/SQLite-3.8.2/sqlite3.o -Wno-int-to-pointer-cast -Wno-char-subscripts -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-unused-variable -Wno-shorten-64-to-32 -fsigned-char -O3 -fpermissive -fPIC -fopenmp cc1: warning: command line option ‘-fpermissive’ is valid for C++/ObjC++ but not for C

3.在全球范围内:

cc1plus: warning: unrecognized command line option ‘-Wno-shorten-64-to-32’ x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-MW0004/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DSQLITE_PTR_SIZE=sizeof(long) -D__UNIX__ -D__MP__ -D__MP2__ -D_SLKP_LFENGINE_REWRITE_ -D__AFYP_REWRITE_BGM__ -D__HEADLESS__ -D_HYPHY_LIBDIRECTORY_="/usr/local/lib/hyphy" -D__HYPHY_64__ -I/home/rafael/hyphy-python/hyphy-src/src/core/include -I/home/rafael/hyphy-python/hyphy-src/src/new/include -I/home/rafael/hyphy-python/hyphy-src/src/gui/include -I/home/rafael/hyphy-python/Link -I/home/rafael/hyphy-python/hyphy-src/contrib -I/home/rafael/hyphy-python/hyphy-src/contrib/SQLite-3.8.2 -I/usr/include/python2.7 -c /home/rafael/hyphy-python/hyphy-src/contrib/SQLite-3.8.2/sqlite3.c -o build/temp.linux-x86_64-2.7/home/rafael/hyphy-python/hyphy-src/contrib/SQLite-3.8.2/sqlite3.o -Wno-int-to-pointer-cast -Wno-char-subscripts -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-unused-variable -Wno-shorten-64-to-32 -fsigned-char -O3 -fpermissive -fPIC -fopenmp cc1: warning: command line option ‘-fpermissive’ is valid for C++/ObjC++ but not for C


Tags: tosrchomesqliteincludeislinecontrib