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

来源:2-3 pycharm和navicat的简单使用

无无法师

2017-03-03

http://szimg.mukewang.com/58b8e53e0001a3ba06640422.jpg

http://szimg.mukewang.com/58b8e53e0001128105100287.jpg

报错如下

http://szimg.mukewang.com/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'


写回答

1回答

江魁

2017-03-05

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

1
0

Python3.6+django+xadmin,打造在线教育平台

【毕设】Python 2.7到3.6 完美适配,Django升级2.0

3677 学习 · 4041 问题

查看课程