Open Mng-dev-ai opened 3 years ago
pip install tortoise-orm
What version of python are you using? I had this problem when I was using 3.10. I solved it after dropping back to 3.9.
using 3.11, failed
You can try returning your python version to 3.9 and try again because this module is incompatible with older versions of python
@wwweww Actually no, it's the problem of another package called tortoise, which is unrelated with this orm, just reinstall all tortoise-orm, everything works good.
@wwweww Actually no, it's the problem of another package called tortoise, which is unrelated with this orm, just reinstall all tortoise-orm, everything works good.
how to do that
After accidental install of tortoise instead of tortoise-orm I had to manually remove it from virtual env.
pip3 uinstall tortoise #did not help
cd /path/to/env/lib/python3.11/site-packages/
rm -rf tortoise*
pip3 install tortoise-orm
@pawelkoston Worked, thank you.
After install aerich when I run aerich -h I got this error : ImportError: cannot import name 'Tortoise' from 'tortoise' (unknown location)