如何通过setup.py安装funcat

 

  • 我的python3.7环境,发现用pip install 命令安装funcat失败 。
  • 直接下载安装包,解压后发现只提供了一个setup.py文件 ,依据网上提示对req进行了相应修改,改后如下:
from pip._internal.req import parse_requirements


setup(
    name='funcat',
    version='0.0.9',
    description='funcat',
    packages=find_packages(exclude=[]),
    author='Hua Liang',
    url='https://github.com/cedricporter/funcat',
    author_email='et@everet.org',
    package_data={'': ['*.*']},
    install_requires=[str(ir.requirement) for ir in parse_requirements("requirements.txt", session=False)],
    zip_safe=False,
)

 

之后安装步骤:

  1. 打开cmd
  2. 到达安装目录
  3. python setup.py build
  4. python setup.py install

安装过程屏显如下:

PS X:\py\funcat-0.0.9> python setup.py build
running build
running build_py
creating build
creating build\lib
creating build\lib\funcat
copying funcat\context.py -> build\lib\funcat
copying funcat\func.py -> build\lib\funcat
copying funcat\helper.py -> build\lib\funcat
copying funcat\time_series.py -> build\lib\funcat
copying funcat\utils.py -> build\lib\funcat
copying funcat\__init__.py -> build\lib\funcat
creating build\lib\funcat\data
copying funcat\data\backend.py -> build\lib\funcat\data
copying funcat\data\rqalpha_backend.py -> build\lib\funcat\data
copying funcat\data\tushare_backend.py -> build\lib\funcat\data
copying funcat\data\__init__.py -> build\lib\funcat\data
copying funcat\context.pyc -> build\lib\funcat
copying funcat\func.pyc -> build\lib\funcat
copying funcat\helper.pyc -> build\lib\funcat
copying funcat\time_series.pyc -> build\lib\funcat
copying funcat\utils.pyc -> build\lib\funcat
copying funcat\__init__.pyc -> build\lib\funcat
copying funcat\data\backend.pyc -> build\lib\funcat\data
copying funcat\data\tushare_backend.pyc -> build\lib\funcat\data
copying funcat\data\__init__.pyc -> build\lib\funcat\data
PS X:\py\funcat-0.0.9> python setup.py install
running install
running bdist_egg
running egg_info
writing funcat.egg-info\PKG-INFO
writing dependency_links to funcat.egg-info\dependency_links.txt
writing requirements to funcat.egg-info\requires.txt
writing top-level names to funcat.egg-info\top_level.txt
reading manifest file 'funcat.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'funcat.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\context.py -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\context.pyc -> build\bdist.win-amd64\egg\funcat
creating build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\data\backend.py -> build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\data\backend.pyc -> build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\data\rqalpha_backend.py -> build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\data\tushare_backend.py -> build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\data\tushare_backend.pyc -> build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\data\__init__.py -> build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\data\__init__.pyc -> build\bdist.win-amd64\egg\funcat\data
copying build\lib\funcat\func.py -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\func.pyc -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\helper.py -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\helper.pyc -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\time_series.py -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\time_series.pyc -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\utils.py -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\utils.pyc -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\__init__.py -> build\bdist.win-amd64\egg\funcat
copying build\lib\funcat\__init__.pyc -> build\bdist.win-amd64\egg\funcat
byte-compiling build\bdist.win-amd64\egg\funcat\context.py to context.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\data\backend.py to backend.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\data\rqalpha_backend.py to rqalpha_backend.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\data\tushare_backend.py to tushare_backend.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\data\__init__.py to __init__.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\func.py to func.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\helper.py to helper.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\time_series.py to time_series.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\utils.py to utils.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\funcat\__init__.py to __init__.cpython-37.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying funcat.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying funcat.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying funcat.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying funcat.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO
copying funcat.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying funcat.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
creating dist
creating 'dist\funcat-0.0.9-py3.7.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing funcat-0.0.9-py3.7.egg
creating c:\users\unicom\appdata\local\programs\python\python37\lib\site-packages\funcat-0.0.9-py3.7.egg
Extracting funcat-0.0.9-py3.7.egg to c:\users\unicom\appdata\local\programs\python\python37\lib\site-packages
Adding funcat 0.0.9 to easy-install.pth file

Installed c:\users\unicom\appdata\local\programs\python\python37\lib\site-packages\funcat-0.0.9-py3.7.egg
Processing dependencies for funcat==0.0.9
Searching for tushare
Reading https://pypi.org/simple/tushare/
Downloading https://files.pythonhosted.org/packages/fc/96/d99c405aa2490205c08b3f75335014cde4b4bc4637d637c1dd8b64d6be64/tushare-1.2.60-py3-none-any.whl#sha256=ebabb68a077585ba72e269aefc120b51f1e2f1fb4f681c4d0142d93fdfe8c7a3
Best match: tushare 1.2.60
Processing tushare-1.2.60-py3-none-any.whl
Installing tushare-1.2.60-py3-none-any.whl to c:\users\unicom\appdata\local\programs\python\python37\lib\site-packages
Adding tushare 1.2.60 to easy-install.pth file

Installed c:\users\unicom\appdata\local\programs\python\python37\lib\site-packages\tushare-1.2.60-py3.7.egg
Searching for TA-Lib
Reading https://pypi.org/simple/TA-Lib/
Downloading https://files.pythonhosted.org/packages/d7/15/ebf1a6ebcf7580dc53e342979c7425affc38ef272bc10a7f4565ee87b394/TA-Lib-0.4.18.tar.gz#sha256=261d88fbca4b1923b37e0aad23512bc9b9245726c187344e432ee6a4a9a134a8
Best match: TA-Lib 0.4.18
Processing TA-Lib-0.4.18.tar.gz
Writing C:\Users\Public\Documents\Wondershare\CreatorTemp\easy_install-ysivxs8f\TA-Lib-0.4.18\setup.cfg
Running TA-Lib-0.4.18\setup.py -q bdist_egg --dist-dir C:\Users\Public\Documents\Wondershare\CreatorTemp\easy_install-ysivxs8f\TA-Lib-0.4.18\egg-dist-tmp-u7n6_f6j
C:\Users\Public\Documents\Wondershare\CreatorTemp\easy_install-ysivxs8f\TA-Lib-0.4.18\setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
  warnings.warn('Cannot find ta-lib library, installation may fail.')
_ta_lib.c
talib/_ta_lib.c(599): fatal error C1083: 无法打开包括文件: “ta_libc.h”: No such file or directory
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
PS X:\py\funcat-0.0.9>

 

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
### 回答1: FunCat是一种用于功能注释的分类系统,用于描述生物学的分子功能,包括蛋白质、基因、代谢通路和细胞组件。它提供了一个框架,使得生物学家可以将他们的研究与其他人的研究相互比较和交流。 FunCat系统的核心是一组有层次结构的功能注释词汇表,其中包括约6000个功能类别。每个类别都被分配了一个唯一的FunCat号码,用于标识该类别。类别的结构是层次化的,其中每个类别都可以拆分为更小的子类别。这种层次结构使得可以从高层次的抽象概念到低层次的具体功能之间进行导航。 FunCat系统的主要应用包括: 1. 对基因组数据进行功能注释:可以使用FunCat来对基因组中的基因进行注释,从而确定它们可能扮演的功能角色。 2. 对蛋白质组数据进行功能注释:可以使用FunCat来对蛋白质组中的蛋白质进行注释,从而确定它们的功能和相互作用。 3. 对代谢通路进行注释:可以使用FunCat来对代谢通路进行注释,从而确定它们的功能和相互作用。 4. 对组织或细胞的结构进行注释:可以使用FunCat来对细胞结构或组织结构进行注释,从而确定它们的功能和相互作用。 总的来说,FunCat是一种非常有用的工具,可帮助生物学家解释和理解复杂的生物学过程,并为他们的研究提供一个统一的框架。 ### 回答2: FunCat(Functional Annotation of Genomes using CATegories)是一种基于功能注释的生物信息学工具,主要用于分析和注释基因组的功能。FunCat由慕尼黑工业大学的生物信息学研究小组开发,旨在为基因组学研究提供一个全面而可靠的功能注释系统。 FunCat的功能注释方法主要是基于基因本体(Gene Ontology,GO)的分类体系。GO是一个广泛采用的用来表征基因功能的标准术语体系,将不同的基因功能分为三个层次的分类:分子功能(Molecular Function)、细胞组成(Cellular Component)和生物过程(Biological Process)。 FunCat通过将实验获得的基因功能信息与GO注释进行匹配,为每个基因的功能进行分类和注释。它提供了一种直观易用的界面,用户可以输入一组基因序列或基因ID列表,并选择相应的物种,然后FunCat会将这些基因的功能注释到GO分类中。 使用FunCat进行功能注释可以帮助研究人员了解基因组的功能组成情况,从而进一步探究它们在生命过程中的作用。此外,FunCat还支持对基因组功能进行统计和可视化分析,帮助用户更好地理解和解释数据。 总结来说,FunCat是一个功能注释工具,它通过基因本体分类体系,将基因组的功能进行注释和分类。它为研究人员提供了一种便捷的方式来理解基因组的功能组成情况,并进行统计和可视化分析。这对于深入研究基因的功能和生物学过程具有重要意义。 ### 回答3: FunCat(Functional Catalogue)功能注释是一款用于生物信息学研究的工具,旨在对不同基因和基因组进行功能注释和分类。该工具利用已知的生物学信息和数据库来理解基因的功能和特征。 FunCat功能注释包含四个主要步骤:预处理、特征提取、分类和结果解释。 首先,在预处理阶段,FunCat功能注释收集和整理已知的生物学信息和数据库。这些数据库包括基因、蛋白质、代谢物和通路等不同类型的信息。这些信息将用于后续的功能注释和分类。 接下来,在特征提取阶段,FunCat功能注释从基因组中提取特定的特征。这些特征可以是基因的序列、结构、表达模式等。这些特征被认为是基因功能的指标,通过提取和分析这些特征可以帮助我们理解基因的功能和特性。 然后,在分类阶段,FunCat功能注释使用提取到的特征和预处理的生物学信息来对基因进行分类。它根据已有的知识和算法将基因划分到不同的功能类别中,并为每个基因分配相应的功能注释信息。这样,研究人员可以更好地了解基因在生物学过程中的作用和功能。 最后,在结果解释阶段,FunCat功能注释生成分类和注释的结果报告。该报告提供了详细的功能分类信息以及对应的注释解释。研究人员可以根据这些结果来进一步研究和理解基因的功能和特征。 总的来说,FunCat功能注释是一款功能强大的生物信息学工具,可以帮助研究人员对基因和基因组进行功能注释和分类,从而更好地理解和解释基因的功能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值