Typed-ast ailed building wheel, необходимое для установки проектов на основе pyproject.toml

Я пытался установить требования в проект Django с помощью pip install -r requirements.txt, но он всегда выдает одну и ту же ошибку. Я не могу найти решения и перепробовал все, что предлагалось в Интернете.

Версии, которые я использовал:

Python - 3.11.1 typed-ast==1.4.2

Я понизил версию python и typed-ast, чтобы проверить, работает ли это... но это не сработало.

      h(457): error C2143: syntax error: missing '{' before '*'
      C:\Users\Aliza Paudel\AppData\Local\Temp\pip-install-13jms7r1\typed-ast_5878f64c514840fdb0c3d18010aba49b\ast27\Custom\../Include/Python-ast.h(457): error C2059: syntax error: ')'
      C:\Users\Aliza Paudel\AppData\Local\Temp\pip-install-13jms7r1\typed-ast_5878f64c514840fdb0c3d18010aba49b\ast27\Custom\../Include/Python-ast.h(459): error C2143: syntax error: missing ')' before '*'
      C:\Users\Aliza Paudel\AppData\Local\Temp\pip-install-13jms7r1\typed-ast_5878f64c514840fdb0c3d18010aba49b\ast27\Custom\../Include/Python-ast.h(459): fatal error C1003: error count exceeds 100; stopping compilation
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for typed-ast
  Failed to build typed-ast
  ERROR: Could not build wheels for typed-ast, which is required to install pyproject.toml- 
  based projects
  (venv) PS C:\ALL_FILES\Projected\kvwsmb>

Мой файл requirements.txt выглядит следующим образом.

pytz==2021.1  # https://github.com/stub42/pytz
python-slugify==4.0.1  # https://github.com/un33k/python-slugify
argon2-cffi==20.1.0  # https://github.com/hynek/argon2_cffi
redis==3.5.3  # https://github.com/andymccurdy/redis-py
hiredis==1.1.0  # https://github.com/redis/hiredis-py
typed-ast==1.4.2

tablib
# Django
# ------------------------------------------------------------------------------
django==3.1.7  # pyup: < 3.2  # https://www.djangoproject.com/
django-environ==0.4.5  # https://github.com/joke2k/django-environ
django-model-utils==4.1.1  # https://github.com/jazzband/django-model-utils
django-allauth==0.44.0  # https://github.com/pennersr/django-allauth
django-crispy-forms==1.11.1  # https://github.com/django-crispy-forms/django-crispy-forms
django-redis==4.12.1  # https://github.com/jazzband/django-redis
django-cors-headers 
django-rest-passwordreset
pillow
gunicorn
Collectfast
dj-database-url
django-autoslug
django-rest-knox
django-import-export
Werkzeug==1.0.1 # https://github.com/pallets/werkzeug
ipdb==0.13.5  # https://github.com/gotcha/ipdb
# https://github.com/psycopg/psycopg2

# Testing
# ------------------------------------------------------------------------------
mypy==0.812  # https://github.com/python/mypy
django-stubs==1.7.0  # https://github.com/typeddjango/django-stubs
pytest==6.2.2  # https://github.com/pytest-dev/pytest
pytest-sugar==0.9.4  # https://github.com/Frozenball/pytest-sugar

# Documentation
# ------------------------------------------------------------------------------
sphinx==3.5.1  # https://github.com/sphinx-doc/sphinx
sphinx-autobuild==2020.9.1 # https://github.com/GaretJax/sphinx-autobuild

# Code quality
# ------------------------------------------------------------------------------
flake8==3.8.4  # https://github.com/PyCQA/flake8
flake8-isort==4.0.0  # https://github.com/gforcada/flake8-isort
coverage==5.5  # https://github.com/nedbat/coveragepy
black==20.8b1  # https://github.com/ambv/black
pylint-django==2.4.2  # https://github.com/PyCQA/pylint-django
pre-commit==2.10.1  # https://github.com/pre-commit/pre-commit

# Django
# ------------------------------------------------------------------------------
factory-boy==3.2.0  # https://github.com/FactoryBoy/factory_boy

django-debug-toolbar==3.2  # https://github.com/jazzband/django-debug-toolbar
django-extensions==3.1.1  # https://github.com/django-extensions/django-extensions
django-coverage-plugin==1.8.0  # https://github.com/nedbat/django_coverage_plugin
pytest-django==4.1.0  # https://github.com/pytest-dev/pytest-django
whitenoise
djangorestframework
django-filter
django-tables2
drf-yasg
django-filter
Вернуться на верх