libnano / primer3-py

Simple oligo analysis and primer design
https://libnano.github.io/primer3-py
GNU General Public License v2.0
157 stars 43 forks source link

Issues installing on windows10 x86-64 #128

Closed lucienalperstein closed 7 months ago

lucienalperstein commented 7 months ago

Hi, Trying to install via pip3 install primer3.py in VSCode in windows10 and am running into some trouble building getting the following error: copying build\lib.win-amd64-cpython-312\primer3\__init__.py -> build\bdist.win-amd64\wheel\.\primer3 'mingw32-make' is not recognized as an internal or external command, operable program or batch file. 'mingw32-make' is not recognized as an internal or external command, operable program or batch file. error: [Errno 2] No such file or directory: 'C:\\Users\\z3290020\\AppData\\Local\\Temp\\pip-install-v5mwmhz0\\primer3-py_534fb369035f44e9a35eb8115051c867\\primer3\\src\\libprimer3\\amplicon3_core.exe' [end of output]

Any ideas on how to solve this error? I have MinGW installed but not sure where to start. Thanks for your time!

benpruitt commented 7 months ago

Looks like you're using Python 3.12 -- let me roll a patch release with 3.12 wheel support (we've been meaning to do this anyway) and then you won't have to build locally.

As far as the above error is concerned -- my guess is that mingw32-make isn't on your PATH. Not sure which instructions you followed to install it, but you might try following step 7 in this VS Code guide to see if that helps.

benpruitt commented 7 months ago

v2.0.2 is released on PyPi now w/ Python 3.12 support + wheels so I believe you should be able to pip install primer3-py into a Python 3.12 env on Windows without need to do any form of local build.

lucienalperstein commented 7 months ago

@benpruitt successfully installed into a Python 3.12 env using pip, thank you!

benpruitt commented 7 months ago

Happy to hear it!