注模塊:我已經請與同樣的錯誤問題,因爲我的,但我的是不同的,我想問問,如果「clean_string,clean_number,clean_text,clean_float,clean_int」蟒蛇:導入錯誤:沒有名爲utils與clean_string
agency_id = scrapy.Field(serializer=clean_string)
一些在建的Python功能或我不得不進口,使其工作
我在Python新只是在做一些編程的東西。
下面我我的代碼片段
from .utils import clean_string, clean_number, clean_text, clean_float, clean_int
from six.moves.urllib.parse import urljoin
class MyItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
agency_id = scrapy.Field(serializer=clean_string)
當我運行上面的代碼給我錯誤
**ImportError: No module named utils**
你可以用它幫助我已安裝clean_string什麼
的可能重複[導入錯誤:沒有模塊名爲「UTIL」(http://stackoverflow.com/questions/29957477/importerror-no-module-named-util) – thesonyman101
哎我的問題是不同的請檢查:clean_string – pcoder
請查看http://nullege.com/codes/show/[email protected]@[email protected]@[email protected]@[email protected]@[email protected]/11/ utils.clean_string – thesonyman101