how to use installed packages in azure ML studio terminal to notebook

Pushkar K.G 10 Reputation points
2023-04-18T20:58:11.32+00:00

I have installed few packages in both the terminal and notebook of Azure Machine Learning studio. I did both pip as well as pip3 install. Terminal goes about installing these pip packages without any problem the problem arises when I'm trying to import these into my notebook It throws me ModuleNotFoundError error. Even a most basic library like tensorflow and pytorch are not being imported into my notebook. But here's a curveball, running python inside the terminal and calling the import statement works. What's the problem here, aren't the terminal and notebook python the same? But that doesn't answer why the notebook's pip statement also produces the same error. Installing and using python packages is such an basic necessity to have in any environment. It's too sad I've wasted a better part of my day to fixing the horrible error. anyways, any help is greatly appreciated Thanks

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,598 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pushkar K.G 10 Reputation points
    2023-04-18T21:15:42.3466667+00:00

    alright after spending an agonoising 2+ hours on this, this stackoverflow comment from  abeomor helped me. I changed the conda environment to default as listing it and installed the package and now I can import them in my notebook. Quite a bit of hassle if anyone care to wonder

    2 people found this answer helpful.