pip install problem for the latest version of klayout.

edited April 21 in Python scripting

Hello, I am encountering this error when I try to do:
pip install klayout

this command used to install klayout without any problems before.
What is weird is it works with older versions of klayout. i.e. if I do
pip install klayout==0.27.13
it works! Why the latest version doesn't work?

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for klayout
Failed to build klayout
ERROR: Could not build wheels for klayout, which is required to install pyproject.toml-based projects

Another related question:
In one my old python projects I used klayout version 0.27.4
However when I do pip install klayout==0.27.4
It can't find this version. Was this version removed?


  • Answering the second question, some of the previously released version were removed from the pip, more info on the decision: https://www.klayout.de/forum/discussion/2485/old-versions-gone-on-pypi

    You can view available versions here: https://pypi.org/project/klayout/#history the new policy is for version 0.XX.YY, keep every version where XX is the latest, and to only keep latest YY for every previous XX.

    Matthias or another KLayout developer will hopefully help with the primary question. Does the pip install command print more errors? These could help pinpoint them to the exact cause of the problem.

  • Hi @Ege_Bey,

    0.27.13 is already pretty old. So you never used 0.28, I assume.

    What OS and which Python version are you on? I assume there is no support for your OS/Python combination and pip tries to build from sources. This fails if you do not have installed a build tool chain.


Sign In or Register to comment.