Can't import Optuna

181 views Asked by At

I am trying to import Optuna on Jupyter Notebook. I have previously installed pytorch-2.0.1. I have tried to downgrade pytorch as well as uninstalling and reinstalling Optuna as well as sqlalchemy. The error I am getting now when running import Optuna is:

"ImportError: cannot import name 'NOT_EXTENSION' from 'sqlalchemy.orm.interfaces"

Does anybody know what the error could be and if there is a fix to this?

1

There are 1 answers

2
Anna Andreeva Rogotulka On

I suggest that it may help you

pip install --upgrade sqlalchemy