django报错:from django.utils.encoding import force_text, python_2_unicode_compatible

 

报错原因:

python版本不兼容

解决方法:

找到”E:\python_practice_ku\django_ttsx\lib\site-packages\haystack\inputs.py"该文件,注释掉第8和11行即可

 

posted on 2020-02-03 22:58  cherry_ning  阅读(1635)  评论(0)    收藏  举报

导航