4

I can install pip packages inside IPython by writing !pip install name. I am however unable to do this with conda. The following example just gets stuck when executed in Jupyter Notebook !conda install -c anaconda pillow -y.

Anyone who can explain why?

1 Answer 1

2

There is a good post found here : https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/

It talks about issues using conda within notebooks and suggests

import sys
!conda install --yes --prefix {sys.prefix} <package>

It will go into further detail down the blog post to explain why it gets messy due to system path variables if you really want to get into it.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.