- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试 pip install SolrClient ,而且我相信我的 python 版本有些困难。
这是错误消息。
[root@centos64 ~]# pip install SolrClient
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting SolrClient
Using cached SolrClient-0.1.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-UeQsqQ/SolrClient/setup.py", line 4, in <module>
import SolrClient
File "SolrClient/__init__.py", line 1, in <module>
from .solrclient import SolrClient
File "SolrClient/solrclient.py", line 10, in <module>
from .collections import Collections
File "SolrClient/collections.py", line 7, in <module>
from collections import defaultdict
ImportError: cannot import name defaultdict
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-UeQsqQ/SolrClient/
[root@centos64 ~]# python -V
Python 2.6.6
[root@centos64 ~]# python3.4 -V
Python 3.4.3
最佳答案
我确实需要使用 python3.4
正如建议的那样,我为该任务使用了一个虚拟环境。
pip install pew
pew new -p `which python3.4` 3.4
pew workon 3.4
pip install SolrClient
关于solr - 无法 pip 安装 SolrClient(python2.6 与 3.4 的问题?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37201356/
我正在为我的一个项目使用 solr 服务器。手动导入和查询选择工作正常。我也能够从 solr 服务器获得结果。实际问题是,每当我尝试使用 PHP-SolrClient 更新 solr 服务器时,它返回
我有一个关于nodejs的solr-client模块的问题。我正在使用这个模块来查询 solr-index。 只要我不必等待查询完成并且只要我只需要结果作为异步结果,模块本身就可以正常工作。 但目前我
我正在记录我在 solr apache 的 Spring 数据教程之后编写的代码,我意识到我不知道 solrTemplate 和 SolrClient 之间的区别> ? 我正在记录以下代码: @Con
我正在尝试将 Solr 实现到我的 Java Spring 应用程序中,但是我在依赖项方面遇到了麻烦,因为 STS 找不到 SolrClient 和 MultiCoreSolrServerFactor
我关注了这个tutorial使用 php 运行 solr。但是我遇到了上述错误。我查看了 SolrClient Class ,但不知道如何使用它。 有这方面的分步指南吗? 最佳答案 请运行以下命令 s
我正在尝试 pip install SolrClient ,而且我相信我的 python 版本有些困难。 这是错误消息。 [root@centos64 ~]# pip install SolrClie
我是一名优秀的程序员,十分优秀!