mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Something strange. ModuleNotFoundError is not defined when script executed via pip.
This commit is contained in:
parent
9e97cd6727
commit
8f9240f7ea
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -7,7 +7,7 @@ from setuptools import find_packages, setup
|
|||
|
||||
try:
|
||||
from pip.req import parse_requirements
|
||||
except ModuleNotFoundError: # pip >= 10.0.0
|
||||
except ImportError: # pip >= 10.0.0
|
||||
from pip._internal.req import parse_requirements
|
||||
|
||||
from aiogram import Stage, VERSION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue