一、环境
1、python3.6.0
2、redhat 7
3、scrapy
二、问题
使用scrapy 创建新项目时,报错如下:
[root@#localhost pp]# scrapy startproject mySpider Traceback (most recent call last): File "/usr/local/bin/scrapy", line 5, in from scrapy.cmdline import execute File "/usr/local/lib/python3.6/site-packages/scrapy/__init__.py", line 12, in from scrapy.spiders import Spider File "/usr/local/lib/python3.6/site-packages/scrapy/spiders/__init__.py", line 10, in from scrapy.http import Request File "/usr/local/lib/python3.6/site-packages/scrapy/http/__init__.py", line 8, in from scrapy.http.headers import Headers File "/usr/local/lib/python3.6/site-packages/scrapy/http/headers.py", line 3, in from scrapy.utils.python import to_unicode File "/usr/local/lib/python3.6/site-packages/scrapy/utils/p