Pip install aiogram ошибка

Текст ошибки представлен ниже. Ошибка происходит при использовании команды «pip install aiogram». Установил отдельно библиотеки wheel и pyproject, но ошибка осталась. PIP обновен до последней версии.

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yarl
Failed to build frozenlist multidict yarl
ERROR: Could not build wheels for frozenlist, multidict, yarl, which is required to 
install pyproject.toml-based projects

  • python
  • aiogram

задан 29 окт 2022 в 23:35

arteazuse's user avatar

1

  • Или ждите, пока опубликуют бинарники yarl/frozenlist/multidict для 3.11, или используйте 3.10

    29 окт 2022 в 23:48

1 ответ

Скачай Visual Studio и в установке поставь галочки на пакеты «Node.js, Классические приложения .Net и С++, так как Microsoft запретило скачивать, юзай VPN.
После чего перезапусти ПК и пробуй качать.

ответ дан 1 ноя 2022 в 17:56

Goodler's user avatar


name: Bug report
about: Cannot install aiogram

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System: Ubuntu 16.04.6 LTS
  • Python Version: 3.7
  • aiogram version:
  • aiohttp version:
  • uvloop version (if installed):

Behavior

~/aiogram$ sudo python3.7 setup.py install

Traceback (most recent call last):
File «setup.py», line 84, in
include_package_data=False,
File «/usr/lib/python3.7/distutils/core.py», line 148, in setup
dist.run_commands()
File «/usr/lib/python3.7/distutils/dist.py», line 966, in run_commands
self.run_command(cmd)
File «/usr/lib/python3.7/distutils/dist.py», line 985, in run_command
cmd_obj.run()
File «/usr/lib/python3/dist-packages/setuptools/command/install.py», line 67, in run
self.do_egg_install()
File «/usr/lib/python3/dist-packages/setuptools/command/install.py», line 109, in do_egg_install
self.run_command(‘bdist_egg’)
File «/usr/lib/python3.7/distutils/cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «/usr/lib/python3.7/distutils/dist.py», line 985, in run_command
cmd_obj.run()
File «/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py», line 209, in run
os.path.join(archive_root, ‘EGG-INFO’), self.zip_safe()
File «/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py», line 245, in zip_safe
return analyze_egg(self.bdist_dir, self.stubs)
File «/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py», line 355, in analyze_egg
safe = scan_module(egg_dir, base, name, stubs) and safe
File «/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py», line 392, in scan_module
code = marshal.load(f)
ValueError: bad marshal data (unknown type code)

—————————

~/aiogram$ pip3 install aiogram

Collecting aiohttp>=3.4.4 (from aiogram)
Could not find a version that satisfies the requirement aiohttp>=3.4.4 (from aiogram) (from versions: 0.1, 0.2, 0.3, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.15.0, 0.15.1, 0.15.2, 0.15.3, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.16.6, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.17.4, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.18.4, 0.19.0, 0.20.0, 0.20.1, 0.20.2, 0.21.0, 0.21.1, 0.21.2, 0.21.4, 0.21.5, 0.21.6, 0.22.0a0, 0.22.0b0, 0.22.0b1, 0.22.0b2, 0.22.0b3, 0.22.0b4, 0.22.0b5, 0.22.0b6, 0.22.0, 0.22.1, 0.22.2, 0.22.3, 0.22.4, 0.22.5, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 2.0.0rc1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.6.post1, 2.0.7, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4, 2.2.5, 2.3.0a1, 2.3.0a2, 2.3.0a4, 2.3.0, 2.3.1a1, 2.3.1, 2.3.2b2, 2.3.2b3, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9, 2.3.10, 3.0.0b0)
No matching distribution found for aiohttp>=3.4.4 (from aiogram)

Не получается установить модуль aiogram, пробовал по-всякому, пишет:

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/     
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for yarl
Failed to build multidict yarl
ERROR: Could not build wheels for multidict, yarl, which is required to install pyproject.toml-based projects


  • Вопрос задан

    20 нояб. 2022

  • 1373 просмотра

Пригласить эксперта

Скорее всего, у вас установлен недавно выпущенный Python 3.11, для которого ещё не все пакеты в PyPI, от которых зависит aiogram, успели сформировать свои бинарные сборки (архитектурно-зависимые wheels).
Два пути решения проблемы:
— установить Microsoft C++ Build Tools для сборки нативных частей пакетов, которые вы устанавливаете из PyPI: https://visualstudio.microsoft.com/visual-cpp-buil…;
— откатиться до прошлой мажорной версии Python, для которой в PyPI есть собранные под вашу ОС и архитектуру wheels (например, 3.10).


  • Показать ещё
    Загружается…

04 июн. 2023, в 12:07

2000 руб./за проект

04 июн. 2023, в 12:06

1000 руб./за проект

04 июн. 2023, в 12:06

30000 руб./за проект

Минуточку внимания

0 / 0 / 0

Регистрация: 19.05.2021

Сообщений: 1

1

14.10.2021, 17:22. Показов 11766. Ответов 2


Студворк — интернет-сервис помощи студентам

Учусь пайтону и решил для себя попробовать создать бота в телеграм, посмотрел ролики, почитал об этом, скачал aiogram из офиц. сайта, зашел в PyCharm начинаю вводить pip install -U aiogram запускаю и начинает выдавать ошибку invalid syntax perhaps you forgot a comma нигде не могу найти выход из этой ситуации, объясните пожалуйста что нужно сделать, что aiogram работал коректно



0



1182 / 758 / 277

Регистрация: 05.09.2021

Сообщений: 1,772

14.10.2021, 17:26

2

Лучший ответ Сообщение было отмечено yung_yng как решение

Решение

yung_yng,

File -> Settings -> Project Name -> Python Interpreter -> Install



1



Эксперт Python

5407 / 3831 / 1214

Регистрация: 28.10.2013

Сообщений: 9,554

Записей в блоге: 1

14.10.2021, 17:41

3

Цитата
Сообщение от yung_yng
Посмотреть сообщение

Учусь пайтону

Вот и учись — читай книги, пиши хэлловорды, решай алгоритмические задачи.
Боты это не хэлловорд. Это сложно. Ты все равно не поймешь как он работает тупой копипастой чужого кода.
Тем более что пока ты даже не понимаешь разницы между консолью Python и системной.

Цитата
Сообщение от yung_yng
Посмотреть сообщение

начинаю вводить pip install -U aiogram запускаю и начинает выдавать ошибку invalid syntax perhaps you forgot a comma

Это значит что написал какую-то ерунду и Python тебе об этом сказал.

pip install -U aiogram вводится в консоли cmd/bash, а в PyCharm вообще все куда проще.



1



This error occurs because you are trying to import module aiogram, but it is not installed in your python environment.

To install the module, execute the following command in termanal:

 pip install aiogram 

To install the module inside Google Colab, Kaggle/Jupyter Notebook or ipython environment, execute the following code line/cell:

 !pip install aiogram 

How it works:

pip — is a standard packet manager in python. This program can install missing module in your local development environment or current Google Colab/Kaggle/Jupyter Notebook session.

! — exclamation mark instructs interactive environment to interpret line/cell content as shell command, not as python code. This is needed because pip command should be executed in shell.

You have already made 2 right things: practicing python and googling error output. Those 2 kinds of actions define a developer. Repeat them long enough, and success is inevitable. Consider subscribing to our DEV blog — it definitely will help to learn python coding and best practices

Понравилась статья? Поделить с друзьями:
  • Pioneer mvh 150ub ошибка усилителя
  • Pioneer flac ошибка 19
  • Pioneer fh x730bt ошибка 23
  • Pioneer fh x380ub ошибка усилителя
  • Pioneer fh x360ub ошибка 19