Skip to content

Long install time from windows. #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
T4rk1n opened this issue Sep 28, 2018 · 20 comments
Open

Long install time from windows. #1208

T4rk1n opened this issue Sep 28, 2018 · 20 comments
Labels
P3 backlog performance something is slow

Comments

@T4rk1n
Copy link

T4rk1n commented Sep 28, 2018

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

@jonmmease
Copy link
Contributor

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 *.pyc files, 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 plotly anaconda channel (which includes precompiled *.pyc files) took less than 20 seconds.

@DarkGhost7
Copy link

taking me forever to install on windows 10 with pip install dash, seems like plotly is taking up most of the time?

@Shaban0818
Copy link

Same in my case. Windows 10 and plotly taking forever to install.

@Limits0x
Copy link

Limits0x commented Oct 6, 2020

I've been trying to install for about 30 mins. It still hasn't finished. Should I cancel ?
I am on Windows 10 Python 3.8.
image

@nicolaskruchten
Copy link
Contributor

That does seem like a long time... did it eventually succeed?

@Limits0x
Copy link

Limits0x commented Oct 6, 2020

No I had to cancel it after 1 and 1/2 hours.

@nitrocalcite
Copy link

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?

@parmanchaddha
Copy link

Same thing here. Using poetry on my mac, running poetry add plotly on an empty environment took about 30 seconds. Executing the same command on my windows 10 pro machine took about 5 minutes...

@Limits0x
Copy link

It was probably an issue with my python installation. I reinstalled and now it takes about 5 mins.

@Prajval-1608
Copy link

Same here, windows 10 and python 3.7.9. Waiting for plotly to install since more than 5 minutes.

@beingandbrian
Copy link

I am also having this issue. Is there a solve for this?

@florian6973
Copy link

Same issue on Windows 11

@adridem
Copy link

adridem commented Mar 9, 2023

Same issue, stuck on Windows 11

@eroller
Copy link

eroller commented Apr 12, 2023

plotly install/update is pretty slow on WSL too. Slower than all the other packages I use. Is there a good justification for it?

@ahmedwaqas92
Copy link

Installation was getting stuck on Windows 11 for me as well, I aborted the installation and tried the following:

pip install plotly -vvv

installed pretty much within 30 seconds.

@nick-st
Copy link

nick-st commented May 2, 2023

pip install plotly took ages, but
pip install plotly==5.14.1 is fine

@gvwilson gvwilson self-assigned this Jun 13, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added P3 backlog performance something is slow and removed performance labels Aug 12, 2024
@okoye-dev
Copy link

pip 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.

@nezza
Copy link

nezza commented Apr 23, 2025

We 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 plotly 

Takes around 7 seconds

pip3 install plotly

Takes multiple minutes

pip3 install plotly 

With having Real-time protection disabled - takes ~20 seconds

So it looks like it's an antivirus issue

@bmaranville
Copy link
Contributor

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 /validators subdirectory.

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%

@gvwilson
Copy link
Contributor

gvwilson commented May 6, 2025

@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

@bmaranville bmaranville mentioned this issue May 9, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 backlog performance something is slow
Projects
None yet
Development

No branches or pull requests