pypi install version

edited January 31 in General

Hi,
My python version is 3.7.
when installing klayout from PyPI I get error information which says the whl file version is 3.6.
So Klayout can not be installed.

how to install v3.6 on the python3.7?

pip install klayout-0.26.1-cp36-cp36m-win_amd64.whl
klayout-0.26.1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

Thanks.

Comments

  • edited February 2

    What happens if you just use "pip install klayout"? There is a 3.7 wheel for windows for the 0.26.3 release.

    Matthias

  • At this moment, GMT Time 14:21, Feb 2, 2020
    I re-install by "pip install klayout". It works.
    I forgot what information was shown.
    Sorry for this post.

    and I test this script, it is OK:

    # Python version:
    
    import pya
    
    layout = pya.Layout()
    top = layout.create_cell("TOP")
    l1 = layout.layer(1, 0)
    top.shapes(l1).insert(pya.Box(0, 0, 1000, 2000))
    
    layout.write("t.gds")
    

    Thanks, Matthias

Sign In or Register to comment.