-1

I have installed sqlalchemy and its getting imported in python in powershell

enter image description here

But when I am trying to import in jupyter notebook, its showing module not found error.

I tried installing it in the notebook and then importing it but no success

enter image description here

I am really stuck. Any help will be appreciated.

Thanks in advance.

Bibek Paul
  • 142
  • 2
  • 9

2 Answers2

1

A bit of a guess but maybe you need to reopen the notebook after installing - python does not reload its installations before you do it.

Barak Fatal
  • 158
  • 8
-2

I got the solution from this post

"ImportError: No module named" when trying to run Python script

I had to add the path of the module folder to sys.

import sys
sys.path.append('my/path/to/module/folder')
import sqlalchemy
Bibek Paul
  • 142
  • 2
  • 9