Issue
Why I cannot make sqlalchemy.engine working correctly?
I have installed SQLAlchemy
pip install SQLAlchemy
I have following code in Python
from sqlalchemy.engine import URL
It cause error:
ImportError: cannot import name 'URL' from 'sqlalchemy.engine' (C:\Python\Python3.8.9\lib\site-
packages\sqlalchemy\engine\__init__.py)
Solution
Try to install it with this command:
pip3 install flask-sqlalchemy
If it doesnt worked then try above commands with --user at the end of both commands.
pip3 install flask-sqlalchemy --user
Answered By - Alejandro Martinez
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.