If you have pip install alembic done correctly which can be verified using pip show alembic , then do it from the terminal / cmd , sometime the console of the third-party application like vscode,intellij or others acts wierd.
pip install alembic
pip show alembic