1
自從我使用macport最後更新蟒(nonw 2.7.3),我得到了以下問題:蟒蛇在Mac OS X Lion的「導入錯誤:無法導入名urandom的」
Traceback (most recent call last): File "", line 4, in File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py", line 46,
in import email.utils File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/email/utils.py", line 27,
in import random File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py", line 47,
in from os import urandom as _urandom
ImportError: cannot import name urandom
我正在上:
- OS X 10.7.5版本
- Python版本2.7.3
- $ PATH中:/ opt/local/bin目錄中:/ opt/local/sbin中:在/ usr/bin中:/ bin中:在/ usr/sbin:/ sbin:/ usr/local/bin:/ usr/X11/bin
你能幫我嗎?謝謝
我有類似的問題與vim和python模式,這對我幫助https://github.com/klen/python-mode/issues/87 **但**它不是同一個問題 - 但他們給建議追究這個問題。不管你的問題如何切線。 – sotapme 2013-02-13 10:33:51