简体   繁体   English

Python 安装 google-research/summae

[英]Python install google-research/summae

Trying to install google-research/summae to summarize a tonne of paragraphs that are way too long.试图安装 google-research/summae 来总结一吨太长的段落。 Having trouble because python cannot import the modules as the code was downloaded from git, and not through pip... Therefore the build script cannot find these modules in the system path.遇到问题,因为 python 无法导入模块,因为代码是从 git 下载的,而不是通过 pip... 因此构建脚本在系统路径中找不到这些模块。

/usr/bin/python3: Error while finding module specification for 'summae.process_rocstories.py' (ModuleNotFoundError: __path__ attribute not found on 'summae.process_rocstories' while trying to find 'summae.process_rocstories.py')

I tried manually to add these paths to the system path, ie.我尝试手动将这些路径添加到系统路径,即。

import sys
sys.path.insert(0, '../google-research/summae')
quit()

But it gives pretty much the same error.但它给出了几乎相同的错误。

Anyone know how to install this module as it is not available through pip to install, and the command,任何人都知道如何安装此模块,因为它无法通过 pip 安装,以及命令,

+ python3 -m summae.process_rocstories.py --raw_dir=/home/...

Doesn't work (due to the module not being available in the sytem path)?不起作用(由于模块在系统路径中不可用)?

You need to install the git package via pip using a similar command to this:您需要使用与此类似的命令通过 pip 安装 git package:

sudo python3 -m pip install git+https://github.com/openai/gym.git

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

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