MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

Install Python Packages on VM #35487

Closed thecpshah closed 5 years ago

thecpshah commented 5 years ago

Once I set up Notebook VM, how do I install packages? For example, package like plotnine, seaborn?

I tried !pip install seaborn and I get the following error:

mxnet-model-server 1.0.1 requires model-archiver, which is not installed. flake8 3.7.5 has requirement pycodestyle<2.6.0,>=2.5.0, but you'll have pycodestyle 2.4.0 which is incompatible. blobxfer 1.6.0 has requirement requests~=2.21.0, but you'll have requests 2.18.4 which is incompatible. blobxfer 1.6.0 has requirement ruamel.yaml~=0.15.85, but you'll have ruamel-yaml 0.15.35 which is incompatible. chainermn 1.3.1 has requirement chainer<5.0,>=3.5.0, but you'll have chainer 5.2.0 which is incompatible. autovizwidget 0.12.7 has requirement plotly<3.0,>=1.10.0, but you'll have plotly 3.6.1 which is incompatible. azure-datalake-store 0.0.41 has requirement requests>=2.20.0, but you'll have requests 2.18.4 which is incompatible.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

YutongTie-MSFT commented 5 years ago

@thecpshah Thanks for the feedback! We are currently investigating and will update you shortly.

maxluk commented 5 years ago

Try "!source activate py36 && pip install seaborn". The default Jupyter environment is not 3.6, so you need to switch it. We are working on smoothing this out, but for now you need to do source activate.

sdgilley commented 5 years ago

Thanks @thecpshah for asking about this. I just added this info to the article, in the Next steps section.

please-close

thecpshah commented 5 years ago

Thank you, this solution works.