cihologramas / pyoptools

Python tools for optical design
GNU General Public License v3.0
136 stars 45 forks source link

Installation problem #124

Open meidihku opened 2 years ago

meidihku commented 2 years ago

Hi, all. I came accross the installation problem when I try to install pyoptools on win10 with the python 3.7 enviroment built by anoconda.

If I change the python enviroment to python = 3.8, another error will be reported (cython can not be successfully built).

Can someone show how to install the package properly?

Many thanks. error

Jamesong7822 commented 2 years ago

I have the same issue (Windows Python 3.9), how should we go about fixing this? @rdgraham

rdgraham commented 2 years ago

Unfortunately I never found a solution to this. Generally I am running on Linux but need to use Windows from time to time. The problem seems to be pointing cython to the C compiler in windows anaconda environment. Unfortunately I never had success with visual studio or cygwin options.

ramezquitao commented 2 years ago

The same happens with me. I only use linux, so I have no idea on how to solve the situation. I'm a bit busy with work this days, but in 2 or 3 weeks I will have time to try to install this in a Windows machine.

Sorry

tlnguyenx commented 2 years ago

I guess you are running from inside the sourcecode folder after installation. python tries to import from the sourcecode directly. Please try again from somewhere else.

semiversus commented 1 year ago

A pull request is pending solving those issues: #127 . May try it and report if it is working in your environment.