Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'semantic_kernel' in Azure Machine Learning Prompt Flow. #2422

Closed
teamsdeveloper opened this issue Aug 11, 2023 · 3 comments
Closed
Labels

Comments

@teamsdeveloper
Copy link

teamsdeveloper commented Aug 11, 2023

I tried to import semantic kernel like below in Azure Machine Learning Prompt Flow.
import semantic_kernel as sk

But I got below error:
No module named 'semantic_kernel'.

How to use semantic kernel in azure machine learning prompt flow.

@matthewbolanos
Copy link
Member

Thanks for reaching out! The out-of-the-box runtime environments in prompt flow are purposefully kept fairly lean. If you want to use other PIP packages, you'll need to create a custom runtime environment and make sure all of your needed PIP packages are described in the requirements.txt file (including Semantic Kernel).

As part of the Semantic Kernel team's efforts to integrate with the rest of the Microsoft ecosystem, we'll be blogging and documenting how to use Prompt Flow and Semantic Kernel together next week. Keep an eye out for it!

@teamsdeveloper
Copy link
Author

Thank you. I have successfully created custom environment for semantic kernel, created prompt flow and added a step for summarization, and it worked fine.

@nacharya1
Copy link
Contributor

@teamsdeveloper thats great to hear! thanks for letting us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants