Не удалось собрать httptools, как это исправитьPython

Программы на Python
Ответить
Anonymous
 Не удалось собрать httptools, как это исправить

Сообщение Anonymous »

когда я пытаюсь установить FAST API (https://fastapi.tiangolo.com/tutorial /).
я использую Python 3.10.2, Pycharm
Я получаю следующую ошибку при использовании httptools.Я уже установил инструменты сборки, указанные по ссылке.
и обновил инструменты настройки, колесо и пункт, используя

pip install --upgrade pip setuptools wheel

но я все равно получаю эту ошибку:


Building wheels for collected packages: httptools

Building wheel for httptools (setup.py) ... error

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.

│ exit code: 1

╰─> [25 lines of output]

running bdist_wheel

running build

running build_py

creating build

creating build\lib.win-amd64-3.10

creating build\lib.win-amd64-3.10\httptools

copying httptools\_version.py -> build\lib.win-amd64-3.10\httptools

copying httptools\__init__.py -> build\lib.win-amd64-3.10\httptools

creating build\lib.win-amd64-3.10\httptools\parser

copying httptools\parser\errors.py -> build\lib.win-amd64-3.10\httptools\parser

copying httptools\parser\__init__.py -> build\lib.win-amd64-3.10\httptools\parser

running egg_info

writing httptools.egg-info\PKG-INFO

writing dependency_links to httptools.egg-info\dependency_links.txt

writing requirements to httptools.egg-info\requires.txt

writing top-level names to httptools.egg-info\top_level.txt

reading manifest file 'httptools.egg-info\SOURCES.txt'

reading manifest template 'MANIFEST.in'

adding license file 'LICENSE'

writing manifest file 'httptools.egg-info\SOURCES.txt'

copying httptools\parser\parser.c -> build\lib.win-amd64-3.10\httptools\parser

copying httptools\parser\url_parser.c -> build\lib.win-amd64-3.10\httptools\parser

running build_ext

building 'httptools.parser.parser' extension

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visu ... ild-tools/

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for httptools

Running setup.py clean for httptools

Failed to build httptools

Installing collected packages: httptools, certifi, ujson, python-multipart, orjson, jinja2, itsdangerous, dnspython, charset-normalizer, requests, email_validator, fastapi
Running setup.py install for httptools ... error

error: subprocess-exited-with-error

× Running setup.py install for httptools did not run successfully.

│ exit code: 1

╰─> [27 lines of output]

running install

c:\users\ghali\pycharmprojects\tat\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and ot
her standards-based tools.

warnings.warn(

running build

running build_py

creating build

creating build\lib.win-amd64-3.10

creating build\lib.win-amd64-3.10\httptools

copying httptools\_version.py -> build\lib.win-amd64-3.10\httptools

copying httptools\__init__.py -> build\lib.win-amd64-3.10\httptools

creating build\lib.win-amd64-3.10\httptools\parser

copying httptools\parser\errors.py -> build\lib.win-amd64-3.10\httptools\parser

copying httptools\parser\__init__.py -> build\lib.win-amd64-3.10\httptools\parser

running egg_info

writing httptools.egg-info\PKG-INFO

writing dependency_links to httptools.egg-info\dependency_links.txt

writing requirements to httptools.egg-info\requires.txt

writing top-level names to httptools.egg-info\top_level.txt

reading manifest file 'httptools.egg-info\SOURCES.txt'

reading manifest template 'MANIFEST.in'

adding license file 'LICENSE'

writing manifest file 'httptools.egg-info\SOURCES.txt'

copying httptools\parser\parser.c -> build\lib.win-amd64-3.10\httptools\parser

copying httptools\parser\url_parser.c -> build\lib.win-amd64-3.10\httptools\parser

running build_ext

building 'httptools.parser.parser' extension

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visu ... ild-tools/

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: legacy-install-failure

× Encountered error while trying to install package.

╰─> httptools

note: This is an issue with the package mentioned above, not pip
.
hint: See above for output from the failure.



Подробнее здесь: https://stackoverflow.com/questions/712 ... -to-fix-it
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»