microsoft / TypeChat

TypeChat is a library that makes it easy to build natural language interfaces using types.
https://microsoft.github.io/TypeChat/
MIT License
8.06k stars 379 forks source link

Switch to `%pip install` in notebooks instead of `!pip install`. #167

Closed DanielRosenwasser closed 5 months ago

DanielRosenwasser commented 6 months ago

When trying the notebook examples with the Jupyter extension, I get the following error:

Use '%pip install' instead of '!pip install'   '!pip install' could install packages to the wrong environment. More info

It's documented over here: https://github.com/microsoft/vscode-jupyter/wiki/Installing-Python-packages-in-Jupyter-Notebooks

I'm not sure if we should be using pip within notebooks if we already use a package manager, but it I'm inclined to do what the error message says. 😄

(P.S. thanks to @DonJayamanne and @rchiodo for https://github.com/microsoft/vscode-jupyter/issues/6864)

DonJayamanne commented 5 months ago

I'm not sure if we should be using pip within notebooks if we already use a package manager, but it I'm inclined to do what the error message says

Unfortunately there's no generic command that runs for different package managers. Thus you have to decide and use either %pip or %conda,