Search code examples
pythonpipplotly

Failed to upgrade plotly using pip


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.

Solution

  • 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