MouseLand / cellpose

a generalist algorithm for cellular segmentation with human-in-the-loop capabilities
https://www.cellpose.org/
BSD 3-Clause "New" or "Revised" License
1.24k stars 359 forks source link

[INSTALL] "OSError: could not get source code" with GUI #929

Open mayishazn opened 1 month ago

mayishazn commented 1 month ago

Install problem Since I couldnt edit missegmented cells with my current installation, I created a fresh environment and installed cellpose[gui]. Then I just opened an image and tried to run cyto3 with the gui. It fails to segment and says "OSError: could not get source code" I attach relevant details.

Environment info env.txt

Run log cmd.txt

mrariden commented 1 month ago

It looks like some of the torch library didn't install or get correctly linked. Can you do something like

conda create -n <new env name> # make sure to either completely remove an existing environment first, or choose a new name
conda activate <env name> 
pip install cellpose
pip install cellpose[gui]

And if that doesn't work, install pytorch manually. You can get the command for your OS/install here: https://pytorch.org/ under 'install pytorch'