我通过Anaconda在Python 3.5.2上运行OS X El Capitan并且拥有spaCy 0.101.0。
我正在尝试使用select news_id, sum(case when likes.like then 1 else -1 end) as max_positive from likes group by(news_id) order by(max_positive) desc
安装spaCy英语语言模型。但是,当我这样做时,我收到一个错误Like.group(:news_id)
.sum('CASE WHEN likes.like THEN 1 ELSE -1 end')
.max_by { |_k, v| v }
。完整的Traceback如下:
python -m spacy.en.download
答案 0 :(得分:13)
在终端中运行:
/Applications/Python 3.5.2/Install Certificates.command
或通过certifi
pip
包