cellpose icon indicating copy to clipboard operation
cellpose copied to clipboard

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

Open mayishazn opened this issue 9 months ago • 1 comments

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

mayishazn avatar May 02 '24 01:05 mayishazn

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'

mrariden avatar May 06 '24 13:05 mrariden

closing due to inactivity

carsen-stringer avatar Sep 10 '24 08:09 carsen-stringer