Repository navigation
Long install time from windows. #1208
Description
Activity
Thanks for the report. I've only tried the windows install on a VM so I wasn't sure what the real difference was. I'm wondering if it's related to compiling the
*.pycfiles, similar to the conda slowness reported in #1175. Though I don't know why this would be so much slower on windows.In that issue @fcollonval reported that the conda install from our
plotlyanaconda channel (which includes precompiled *.pyc files) took less than 20 seconds.Reacted by Corey James Levinsontaking me forever to install on windows 10 with pip install dash, seems like plotly is taking up most of the time?
Reacted by Harish SekarSame in my case. Windows 10 and plotly taking forever to install.
That does seem like a long time... did it eventually succeed?
No I had to cancel it after 1 and 1/2 hours.
I also experienced this on Windows 10, Python 3.6.10, and after ~5 minutes I canceled it. However, I didn't get any error messages & plotly at least appears to be working fine; perhaps it's getting hung somewhere?
Same thing here. Using poetry on my mac, running
poetry add plotlyon an empty environment took about 30 seconds. Executing the same command on my windows 10 pro machine took about 5 minutes...It was probably an issue with my python installation. I reinstalled and now it takes about 5 mins.
Same here, windows 10 and python 3.7.9. Waiting for plotly to install since more than 5 minutes.
I am also having this issue. Is there a solve for this?
Same issue on Windows 11
Same issue, stuck on Windows 11
plotly install/update is pretty slow on WSL too. Slower than all the other packages I use. Is there a good justification for it?
Installation was getting stuck on Windows 11 for me as well, I aborted the installation and tried the following:
pip install plotly -vvvinstalled pretty much within 30 seconds.
pip install plotlytook ages, but
pip install plotly==5.14.1is finepip install dash is taking almost 30minutes here and it's still now done.
Is this just because it's a windows machine? Windows 11 btw.Reacted by Tgi0, jordangrodecki and DSWe had a lot of Windows user reports for our library reporting installation times as very slow. After some investigation we found:
pip3 install --no-compile plotlyTakes around 7 seconds
pip3 install plotlyTakes multiple minutes
pip3 install plotlyWith having Real-time protection disabled - takes ~20 seconds
So it looks like it's an antivirus issue
I love the plotly package - it does things that no other package does (offers a compact, stable JSON serialization of a plot that can be generated using the public API and passed around between program components and plotted with javascript).
It has nearly 30000 files in the installed python package though, which is why the antivirus slows down installation (it is looking at each one). By comparison matplotlib has between 500 and 1000, depending on how it is installed. >26000 of the files in plotly are in the
/validatorssubdirectory.If there is a way to reduce the number of files, I'd be happy to help. This would cut down the installation time directly, particularly on Windows (though it affects the installation time on all platforms). Refactoring so that validators are grouped into larger files instead of a lot of small files could reduce the total file count by >80%
@bmaranville help consolidating the validators would be very welcome. our next plotly.py release (6.1) reduces the bundle size using some other tricks, but there wasn't time to do what you're suggesting - if you have time to chat online this week or next I'd be happy to walk through options. cheers - @gvwilson
#5214 was just merged into main, which includes the described changes (removal of > 10000 small validator files), so hopefully installs will get a lot quicker with the next release!
Reacted by Thomas RothReacted by Thomas RothMany optimizations in
plotly==6.2.0, so it's a lot faster now.
On my Windows laptop (only one trial, results could be highly variable):pip install "plotly==6.2": 11 secondspip install "plotly<6.2": 90 seconds
thank you for the feedback @bmaranville - much appreciated.

When
pip install plotlyfrom a windows machine, it takes anywhere from a minute to 5 minutes. From linux it took no more than 10 seconds.