简体   繁体   English

Python:我在哪里可以找到 Anaconda 导航器的“gf”之类的软件包,如何安装它们? Python 版本 3.6

[英]Python: Where do I find packages like “gf” for the Anaconda Navigator and how do I install them? Python Version 3.6

this is my first question here;-)这是我在这里的第一个问题;-)

I am using Python 3.6 via Anaconda Navigator (1.7) and that program shows a list of packages when I click Environments.我正在通过 Anaconda Navigator (1.7) 使用 Python 3.6,当我单击环境时,该程序会显示一个包列表。 Are these packages directly useable or do I have to start any process therefor?这些包可以直接使用还是我必须为此启动任何流程? In a script I want to use the import-function for the package "gf", this one is not in the list above.在一个脚本中,我想使用 package“gf”的导入功能,这个不在上面的列表中。 Where do I find it in a compatible form and how can I make it useable?我在哪里可以找到兼容的形式,如何使它可用?

Anaconda says it has to be.yaml or.yml (Conda environment files) or.txt (Conda explicit specification files or pip requirement files) Anaconda 说它必须是。yaml 或 .yml(Conda 环境文件)或 .txt(Conda 显式规范文件或 pip 要求文件)

I know the other way with the command line and WHL files, but Anaconda does not seem to have any command line as the kind-of-user-guide says.我知道命令行和 WHL 文件的另一种方式,但是 Anaconda 似乎没有任何命令行,正如用户指南所说的那样。 First I tried renaming other install files to.txt, but Anaconda just took ages and got a serious problem that I had to restart it several times.首先我尝试将其他安装文件重命名为 .txt,但是 Anaconda 花了很长时间并且遇到了一个严重的问题,我不得不重新启动它几次。 I also tried to check https://anaconda.org/conda-forge for "gf", but it seems not available there.我还尝试检查https://anaconda.org/conda-forge是否有“gf”,但那里似乎不可用。

Best Regards此致

By GF, do you mean Grammatical Framework ( https://www.grammaticalframework.org/ )? GF,您的意思是语法框架( https://www.grammaticalframework.org/ )吗? If so, then you can't install it via Anaconda.如果是这样,那么您不能通过 Anaconda 安装它。 Maybe you would be interested in one of the following options?也许您会对以下选项之一感兴趣?

Jupyter kernel for GF GF 的 Jupyter kernel

From https://github.com/kwarc/gf_kernel#readme :https://github.com/kwarc/gf_kernel#readme

gf_kernel is a Jupyter kernel for the Grammatical Framework (GF). gf_kernel是用于语法框架 (GF) 的 Jupyter kernel。 It allows you to write grammars and using them for parsing/translating/... all in one notebook, which makes it great for demos and teaching, but also for small experiments with GF.它允许您在一个笔记本中编写语法并使用它们进行解析/翻译/...,这使得它非常适合演示和教学,也适用于 GF 的小型实验。

You need to have GF installed: see https://www.grammaticalframework.org/download/index.html for options.您需要安装 GF:有关选项,请参阅https://www.grammaticalframework.org/download/index.html

Using GF grammars from an external Python program使用来自外部 Python 程序的 GF 语法

Python bindings to the PGF library are included in the GF binary, so if you have Mac or Ubuntu, the easiest way is to download the binary . Python 与 PGF 库的绑定包含在 GF 二进制文件中,因此如果您有 Mac 或 Ubuntu,最简单的方法是下载二进制文件. For other systems, see this blog post for how to install.对于其他系统,请参阅此博客文章了解如何安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM