-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[Windows] Installing conda package is very slow #1175
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
Comments
Hi @fcollonval, glad you're enjoying plotly.py and thanks for reaching out. TLDR, installation is much faster using the new packages in the plotly anaconda channel (https://anaconda.org/plotly/plotly)
Can you try this out and verify that its significantly faster? Explanation: After digging through the conda source code a bit I came to the conclusion that the only way to get conda to skip the *.pyc compilation step during installation is to make sure that the *.pyc files are bundled with the package. But bundling the *.pyc files isn't possible in a Because of this, I opted to build a set of OS/architecture specific packages for the Also, I did look into the (This is probably more than you wanted to know, but I realized that I hadn't written down the full rational yet) |
@jonmmease thanks for this quick and detailed answer. In the mean time, do you know if some issues have been reported to the conda issues tracker about this? Some speedup work should be considered. |
@jonmmease Just tested the installation with the plotly channel. It took less than 20sec. User should definitely use your channel. Long live plotly 😉 |
Thanks for investigating Jon. The solution is: You are forced to use conda install for plotly. If you want to use pip install, be prepared to wait hours because it needs to individually compile multiple Python files into .pyc files. If there is a way to upload a wheel with precompiled files that we can pip install from, that would be great, because then we aren't forced into using conda. |
I really love the new 3.x plotly.py. But its installation from conda package takes ages.
On Windows 7 and 10 64bits with SSD drive,
conda install plotly -c conda-forge
on a fresh conda environment takes at least 15min. whenpip install plotly
in the same fresh environment takes about 1min.As our workflow includes generating often conda environments, this is really annoying.
During the conda installation, the longest step is the latest (Executing transaction). And the bottleneck comes from the byte code generation of all python scripts in plotly. Subprocess looking like the following are run during most of the 15min.:
I have no idea if the trouble can be solved through the recipe. And if it is better to post an issue on conda, I'll happily report it there too.
I don't know if the option
skip_compile_pyc
in the recipe can help.Reference:
The text was updated successfully, but these errors were encountered: