xpt xpt - 6 months ago 100
Python Question

Install Plotly in Anaconda

How to install Plotly in Anaconda?

The https://conda.anaconda.org/plotly says to

conda install -c https://conda.anaconda.org/plotly <package>
, and

The https://plot.ly/python/user-guide/ says to
pip install plotly
. I.e., without package.

So which packages I should specify in Anaconda conda?

I tried without one and get errors:

C:\>conda install -c https://conda.anaconda.org/plotly
Error: too few arguments, must supply command line package specs or --file


If you don't care which version of Plotly you install, just use pip.

pip install plotly is an easy way to install the latest stable package for Plotly from PyPi.

pip is a useful package and dependency management tool, which makes these things easy, but it should be noted that Anaconda's conda tool will do the same thing.

pip will install to your Anaconda install location by default.

Check out this description of package and environment management between pip and conda.

Edit: The link will show that conda can handle everything pip can and more, but if you're not trying to specify the version of the package you need to install, pip can be much more concise.