amueller / gco_python

Python wrappers for GCO alpha-expansion and alpha-beta-swaps
137 stars 65 forks source link

Error on windows #13

Closed hichem-abdellali closed 7 years ago

hichem-abdellali commented 7 years ago
Traceback (most recent call last):
  File "example.py", line 3, in <module>
    from pygco import cut_simple, cut_from_graph
ImportError: No module named 'pygco'

Thanks

amueller commented 7 years ago

how did you install it?

mohammadkamalzare commented 7 years ago

I have the same problem , first I build gco-v3.0 in visual studio 2015 and get gcolib.dll (dynamic library) second I put the gco-v3.0 root address in setup.py and third execute python setup.py build but when I run example.py , it goes to same error as djidan10

amueller commented 7 years ago

@mohammadkamalzare you also need to python setup.py install or you need to do pip install -e . to add the folder to your pythonpath.

mohammadkamalzare commented 7 years ago

@amueller Thanks a lot , it works.

amueller commented 7 years ago

closing for no reply on original issue.

aminevsaziz commented 6 years ago

@amueller @mohammadkamalzare @djidan10 can anyone explain the steps in details.. i'am new to compiling and building in windows environment. Thanks in advance.