I use PyCharm, normally I install 3rd party libraries with the Project Interpreter in PyCharm. Today I installed plotly by running pi
pi
I figured out where the problem is. pip installs packages under python2.7/site-packages pip3 installs packages under python3.6/site-packages
python2.7/site-packages
python3.6/site-packages
So I should use pip3 install plotly==2.7 since I'm using Python3.6
pip3 install plotly==2.7