CellProfiler / centrosome

An open source image processing library
Other
18 stars 35 forks source link

Error pip installing centrosome on windows #77

Closed bethac07 closed 5 years ago

bethac07 commented 7 years ago

Collaborator was installing CP from source following the Conda installation instructions on Windows; it failed on the centrosome installation with the following message

_propagate.obj : error LNK2005: init_propagate already defined in _propagate.obj
_propagate.obj : warning LNK4197: export 'init_propagate' specified multiple times; using first specification
_propagate.obj : warning LNK4197: export 'init_propagate' specified multiple times; using first specification
Creating library build\temp.win-amd64-2.7\Release\centrosome\_propagate.lib and object build\temp.win-amd64-2.7\Release\centrosome\_propagate.exp
build\lib.win-amd64-2.7\centrosome\_propagate.pyd : fatal error LNK1169: one or more multiply defined symbols found
error: command 'C:\\Users\\{redacted}.{redacted}\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1169

(Forgive me, I'm transcribing the error message from a screenshot)

bethac07 commented 7 years ago

For some reason this error kept coming up when we tried installing inside the conda environment file; when I did pip install centrosome it installed just fine. Not an explanation or a solution, but a workaround.

cclauss commented 6 years ago

You might need to activate the virtualenv before running pip https://conda.io/docs/user-guide/tasks/manage-pkgs.html#installing-non-conda-packages