Failed to upgrade plotly using pip

Question:

I’m trying to upgrade plotly which is right now at 2.0.7 and mine is 1.3
using the following:

pip install plotly --upgrade

But I’m having this error:

Installing collected packages:
 Found existing installation: plotly 1.3.1
Cannot uninstall 'plotly'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Asked By: Khalil Mebarkia

||

Answers:

I solved the problem.

First of all I uninstall plotly using pip:

pip uninstall plotly

Then using conda:

conda uninstall plotly

After that, I installed the last version using pip:

pip install plotly

I checked Plotly version:

import plotly
plotly.__version__

which is right now 3.0.0

Answered By: Khalil Mebarkia
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.