ImportError: cannot import name xmlrpc_client

 

在mac系统下,执行scrapy程序的时候报如下错误: 

此错误: “ ImportError: cannot import name xmlrpc_client” 

 

解放方案:

export PYTHONPATH=/Library/Python/2.7/site-packages:$PYTHONPATH

 

echo "export PYTHONPATH=/Library/Python/2.7/site-packages:$PYTHONPATH" >> ~/.bashrc

 

 

 

参考资料:  http://stackoverflow.com/questions/30964836/scrapy-throws-importerror-cannot-import-name-xmlrpc-client

你可能感兴趣的:(python)