1
我是Python的新手,只是試圖在RHEL5 Linux上第一次安裝Dynamic-DynamoDB python軟件包。我沒有在我的系統點,所以我遵循指示,因爲我暗指What is the official "preferred" way to install pip and virtualenv systemwide?使用pip安裝Dynamic-DynamoDB時出錯
現在,當我嘗試安裝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
任何關於什麼我在這裏失蹤的建議?
從其他問題看來,這個模塊在Python版本少於2.4的時候是缺少的。我會嘗試重新安裝新版本 – RandomQuestion
好吧我更新了我的版本到2.7,錯誤消失了。 – RandomQuestion