请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

新建Django项目中缺少文件,ImportError: No module named 'unicodedata'

https://img1.sycdn.imooc.com/szimg//58b8e53e0001a3ba06640422.jpg

https://img1.sycdn.imooc.com/szimg//58b8e53e0001128105100287.jpg

报错如下

https://img1.sycdn.imooc.com/szimg//58b8e53e00019c6113490658.jpg

Error:Traceback (most recent call last):

File "C:/Users/wt271/AppData/Local/Programs/Python/Python35/Lib/django/bin/django-admin.py", line 2, in <module>

from django.core import management

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\core\management\__init__.py", line 13, in <module>

from django.core.management.base import (

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\core\management\base.py", line 17, in <module>

from django.db.migrations.exceptions import MigrationSchemaMissing

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\db\migrations\__init__.py", line 2, in <module>

from .operations import *  # NOQA

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\db\migrations\operations\__init__.py", line 1, in <module>

from .fields import AddField, AlterField, RemoveField, RenameField

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\db\migrations\operations\fields.py", line 3, in <module>

from django.db.models.fields import NOT_PROVIDED

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\db\models\__init__.py", line 5, in <module>

from django.db.models.aggregates import *  # NOQA

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\db\models\aggregates.py", line 5, in <module>

from django.db.models.expressions import Func, Star

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\db\models\expressions.py", line 6, in <module>

from django.db.models import fields

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\db\models\fields\__init__.py", line 14, in <module>

from django import forms

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\forms\__init__.py", line 6, in <module>

from django.forms.boundfield import *  # NOQA

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\forms\boundfield.py", line 5, in <module>

from django.forms.utils import flatatt, pretty_name

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\forms\utils.py", line 10, in <module>

from django.utils.html import escape, format_html, format_html_join, html_safe

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\utils\html.py", line 10, in <module>

from django.utils.http import RFC3986_GENDELIMS, RFC3986_SUBDELIMS

File "C:\Users\wt271\AppData\Local\Programs\Python\Python35\Lib\django\utils\http.py", line 8, in <module>

import unicodedata

ImportError: No module named 'unicodedata'


正在回答 回答被采纳积分+3

1回答

江魁 2017-03-05 17:36:17

python版本选错了?用python2.7试试?

1 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号