我在我的覆盆子pi上安装scrapy时遇到了一些问题(运行喘息)。我安装了python 2.7.9,并尝试通过“pip install scrapy”安装scrapy,但它给了我这个错误:
pi@custodis:~ $ sudo pip install scrapy
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.py", line 34, in <module>
import email.parser
File "/usr/lib/python2.7/email/parser.py", line 12, in <module>
from email.feedparser import FeedParser
File "/usr/lib/python2.7/email/feedparser.py", line 27, in <module>
from email import message
File "/usr/lib/python2.7/email/message.py", line 16, in <module>
import email.charset
File "/usr/lib/python2.7/email/charset.py", line 13, in <module>
import email.base64mime
File "/usr/lib/python2.7/email/base64mime.py", line 40, in <module>
from email.utils import fix_eols
File "/usr/lib/python2.7/email/utils.py", line 32, in <module>
from email._parseaddr import quote
File "/usr/lib/python2.7/email/_parseaddr.py", line 16, in <module>
import time, calendar
File "/usr/lib/python2.7/calendar.py", line 10, in <module>
import locale as _locale
File "/usr/lib/python2.7/locale.py", line 15, in <module>
import encodings
ImportError: No module named encodings
我需要重新安装python吗?您可以提供的任何建议都将非常感激。