Skip to content

[Windows] Installing conda package is very slow #1175

Closed
@fcollonval

Description

@fcollonval

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

"...envs\plotly\python.exe" -Wi -m py_compile "...envs\plotly\Lib\site-packages\plotly\validators\scattermapbox\marker\colorbar\tickformatstop\_value.py"

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:

  • conda version : 4.5.11
  • platform : win-64
  • os: Windows/10.0.17134 and Windows/7
  • Python version: 3.7 and 3.6
  • Plotly.py: 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions