Code runs in PyCharm but not Jupyter

Are you sure that jupyter is installed in your environment?

In pycharm and notebook

import os
print(os)