after setting up my virtual env and installing sqlalchemy
, I created a file src/entities/entity.py
, putting this code:
<code>from sqlalchemy import create_engine, Column, String, Integer, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
#...some code ...
</code>
<code>from sqlalchemy import create_engine, Column, String, Integer, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
#...some code ...
</code>
from sqlalchemy import create_engine, Column, String, Integer, DateTime
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
#...some code ...
it says every time after running:
<code>ModuleNotFoundError: No module named 'sqlalchemy'
</code>
<code>ModuleNotFoundError: No module named 'sqlalchemy'
</code>
ModuleNotFoundError: No module named 'sqlalchemy'
I thought reinstalling the library would fix the issue but it didn’t, even if I installed it with pip.
Python 3.12.3, windows 10.
I hope there is a solution.
1