创建项目时在PyCharm中终端的运行django-admin startproject demo报错.txt
(venv) PS C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject> django-admin startproject demo
Traceback (most recent call last):
File "E:\Python\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "E:\Python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\Scripts\django-admin.exe\__main__.py", line 4, in <module>
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\core\management\__init__.py", line 13, in <module>
from django.core.management.base import (
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\core\management\base.py", line 17, in <module>
from django.db.migrations.exceptions import MigrationSchemaMissing
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\db\migrations\__init__.py", line 2, in <module>
from .operations import * # NOQA
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\db\migrations\operations\__init__.py", line 1, in <module>
from .fields import AddField, AlterField, RemoveField, RenameField
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\db\migrations\operations\fields.py", line 3, in <module>
from django.db.models.fields import NOT_PROVIDED
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\db\models\__init__.py", line 5, in <module>
from django.db.models.deletion import (
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\db\models\deletion.py", line 5, in <module>
from django.db.models import signals, sql
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\db\models\sql\__init__.py", line 2, in <module>
from django.db.models.sql.query import * # NOQA
File "C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject\venv\lib\site-packages\django\db\models\sql\query.py", line 11, in <module>
from collections import Counter, Iterator, Mapping, OrderedDict
ImportError: cannot import name 'Iterator' from 'collections' (E:\Python\lib\collections\__init__.py)
(venv) PS C:\Users\Administrator\Desktop\pythonstudy\Code\Webproject>
我是按照视频课程教学中操作的不知道为什么到这步就是不行试了好多方法,求帮忙