Comments (4)
community
这个模块对应的是python-louvain
,它已经包括在requirements.txt里面,所以如果正常安装的话应该会包括这个模块。
你说在安装的时候报错,那就是还没装好就遇到了这个问题?那能否尝试一下,clone本仓库,或者把上面的requirements.txt下载下来,然后在同一路径下运行pip install -r requirements.txt
?如果还有问题的话,你可以说明一下你的python版本和操作系统,让我检查一下问题。
from harvesttext.
Requirement already satisfied: chardet in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pdfminer.six->pattern->-r requirements.txt (line 17)) (4.0.0)
Collecting cryptography
Downloading cryptography-3.4.6-cp36-abi3-macosx_10_10_x86_64.whl (2.0 MB)
|████████████████████████████████| 2.0 MB 2.3 MB/s
Collecting sortedcontainers
Downloading sortedcontainers-2.3.0-py2.py3-none-any.whl (29 kB)
Requirement already satisfied: cffi>=1.12 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from cryptography->pdfminer.six->pattern->-r requirements.txt (line 17)) (1.14.5)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from cffi>=1.12->cryptography->pdfminer.six->pattern->-r requirements.txt (line 17)) (2.20)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from requests->pattern->-r requirements.txt (line 17)) (1.26.2)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from requests->pattern->-r requirements.txt (line 17)) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from requests->pattern->-r requirements.txt (line 17)) (2.10)
Requirement already satisfied: setuptools in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from zc.lockfile->cherrypy->pattern->-r requirements.txt (line 17)) (49.2.1)
Using legacy 'setup.py install' for jpype1, since package 'wheel' is not installed.
Using legacy 'setup.py install' for sgmllib3k, since package 'wheel' is not installed.
Installing collected packages: more-itertools, jaraco.functools, tempora, jaraco.text, jaraco.classes, zc.lockfile, soupsieve, sortedcontainers, sgmllib3k, portend, jaraco.collections, cryptography, cheroot, jpype1
Running setup.py install for sgmllib3k ... done
Running setup.py install for jpype1 ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setup.py'"'"'; file='"'"'/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-record-0uhuocq6/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/jpype1
cwd: /private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/
Complete output (94 lines):
/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'use_scm_version'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.9
creating build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jcollection.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jcomparable.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_classpath.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jio.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jtypes.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_pykeywords.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jproxy.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_gui.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_darwin.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/nio.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jstring.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_cygwin.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/init.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jboxed.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/types.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/beans.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jvmfinder.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/imports.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jcustomizer.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_core.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jinit.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_linux.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jarray.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jobject.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jclass.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_windows.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jexception.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/reflect.py -> build/lib.macosx-10.9-universal2-3.9/jpype
copying jpype/_jpackage.py -> build/lib.macosx-10.9-universal2-3.9/jpype
running build_ext
running build_java
Using Jar cache
creating build/lib
creating build/lib/org
creating build/lib/org/jpype
creating build/lib/org/jpype/classloader
copying native/jars/org/jpype/classloader/JPypeClassLoader.class -> build/lib/org/jpype/classloader
copying native/jars/org.jpype.jar -> build/lib
running build_thunk
Building thunks
including thunk build/lib/org/jpype/classloader/JPypeClassLoader.class
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setup.py", line 10, in
setup(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/init.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 546, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setupext/build_ext.py", line 72, in build_extensions
self.run_command("build_thunk")
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setupext/build_thunk.py", line 149, in run
createThunks(
File "/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setupext/build_thunk.py", line 103, in createThunks
outputClass(filename, name, fimpl)
File "/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setupext/build_thunk.py", line 53, in outputClass
output(fout, l)
File "/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setupext/build_thunk.py", line 36, in output
buffer.fromstring(l)
AttributeError: 'array.array' object has no attribute 'fromstring'
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setup.py'"'"'; file='"'"'/private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-install-vb6o4x00/jpype1_fd27bfa0ff444905b56acc0df48ebdaa/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/nq/gp55kn4x22q0n9z0mq_rykvw0000gn/T/pip-record-0uhuocq6/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/jpype1 Check the logs for full command output.
from harvesttext.
我安装也遇到很多问题,
MacOS Python3.9
from harvesttext.
我安装也遇到很多问题,
MacOS Python3.9
这个问题主要是其中一个依赖库jpype和python 3.9的兼容性问题,可以尝试使用较低版本的python,比如python 3.6。
from harvesttext.
Related Issues (20)
- ModuleNotFoundError: No module named 'harvesttext.algorithms' HOT 3
- url正则匹配好像有点问题 HOT 1
- 大佬能搞个.net版本吗 HOT 1
- HarvestText 安装出现以下问题AttributeError: module 'gensim' has no attribute 'utils' HOT 2
- 自动分段bug
- url正则表达式卡死 HOT 3
- 一定要安装mysql吗 HOT 2
- mysql_config not found HOT 2
- clean_txt卡死 HOT 2
- 能支持模型训练吗 HOT 1
- 文本分段指定段数切割失败 HOT 4
- 信息检索 HOT 1
- pip下载的harvesttext版本落后 HOT 3
- 提个分句的建议 HOT 1
- 关系网络无论怎么弄,都返回空的{}
- 情感预测正负向概率均为0
- 问答模块无法正常使用
- 请问下,通用情感词典[内置资源]要怎样才能用上? HOT 2
- 文本清洗 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from harvesttext.