嗨即时新手un tweepy我需要在我的RedHat中安装此组件,但我不能
这里有消息:
ec2-user@ip-172-30-0-62 opitrends]$ sudo pip install tweepy
Traceback (most recent call last):
File "/usr/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3020, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 616, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 629, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 807, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==6.1.1
[ec2-user@ip-172-30-0-62 opitrends]$
有人帮助我吗??
由于 布鲁诺
答案 0 :(得分:0)
我无法告诉他们发生了什么,但那是旧版本的pip,这可能就是问题所在。尝试升级pip:
sudo pip install --upgrade pip
然后重试。