我是Python的新手,只是第一次尝试在RHEL5 Linux上安装Dynamic-DynamoDB python包。我没有点击我的系统,所以我按照asnwer What is the official "preferred" way to install pip and virtualenv systemwide?
的说明进行操作现在,当我尝试按照安装说明中的说明安装dynamic-dynamoDB时,它给了我错误。
pip install dynamic-dynamodb
错误
Traceback (most recent call last):
File "/usr/bin//pip", line 8, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/distribute-0.6.49-py2.4.egg/pkg_resources.py", line 345, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.4/site-packages/distribute-0.6.49-py2.4.egg/pkg_resources.py", line 2381, in load_entry_point
return ep.load()
File "/usr/lib/python2.4/site-packages/distribute-0.6.49-py2.4.egg/pkg_resources.py", line 2087, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.4/site-packages/pip/__init__.py", line 11, in ?
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python2.4/site-packages/pip/vcs/mercurial.py", line 9, in ?
from pip.download import path_to_url2
File "/usr/lib/python2.4/site-packages/pip/download.py", line 3, in ?
import hashlib
ImportError: No module named hashlib
有关我在这里缺少什么的任何建议吗?
答案 0 :(得分:0)
我是Dynamic-DynamoDB的作者。对于迟到的回答感到抱歉,无论如何我想回答以防其他人以后遇到同样的问题。
原因是Python版本太旧了。动态DynamoDB支持Python> 2.6。