Comments (10)
看一下Makefile, opencc安装方法不同
from qiming.
同win平台,修改了baidu.py和baike.py下的导包代码from .base import Base 这个问题没了。。
但是出现了新问题
File "qm.py", line 7, in
from crawler import Baidu, Baike, PCbaby, Httpcn
File "D:\project\qiming-master\crawler_init_.py", line 3, in
from .baidu import Baidu
File "D:\project\qiming-master\crawler\baidu.py", line 3, in
from .base import Base
File "D:\project\qiming-master\crawler\base.py", line 8, in
from crawler import Helper
ImportError: cannot import name 'Helper'
Helper从哪来?感谢
from qiming.
@PreRyo Helper 定义在 crawler/crawler.py 中,python 版本是2.7还是3.x ?
from qiming.
@onestraw 3.x,更改了一系列后的导包代码后
Traceback (most recent call last):
File "qm.py", line 9, in
from tools import lookup, word_topk, word_freq
File "D:\project\qiming-master\tools_init_.py", line 10, in
wc = WordCount()
File "D:\project\qiming-master\tools\word_count.py", line 21, in init
self.count()
File "D:\project\qiming-master\tools\word_count.py", line 58, in count
rows = open(self.NameCorpusTxt).readlines()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x8b in position 11: illegal m
ultibyte sequence
from qiming.
@PreRyo sorry, 目前是基于2.7开发,还没有测试 3.x
from qiming.
真心搞不来啊....麻烦lz说明一下如何使用 如何安装吧 win平台 怎么使用Makefile 以前没接触过....呃 我也是3.x
from qiming.
@onestraw 好吧,文档注明一下就好
from qiming.
最后....能提到pip....直接能pip install安装就太美妙了 感谢 @onestraw
from qiming.
@kaesi0 make deps
调了pip install,不过windows安装opencc的方法需要自己找下,当前仅支持python 2.7,我去文档注一下
from qiming.
已支持python3
from qiming.
Related Issues (5)
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 qiming.