cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
311 stars 157 forks source link

Windows didn't install Phy environment #1121

Closed crewl2 closed 2 months ago

crewl2 commented 2 years ago

I'm not sure were I went wrong here but I tried to install Phy, which I've done before, and it isn't installing. Unfortunately, I closed down the command prompt so I don't have the error.

crewl2 commented 2 years ago

image

crewl2 commented 2 years ago

image

I've also ran into these errors. I'm not sure where I went wrong.

antimo-buonocore commented 2 years ago

Hi, I have a very similar error. Tried to install Phy on two different PCs and I get stuck here:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spyder 4.2.5 requires pyqt5<5.13, but you have pyqt5 5.15.4 which is incompatible. spyder 4.2.5 requires pyqtwebengine<5.13, but you have pyqtwebengine 5.15.4 which is incompatible. spyder 4.2.5 requires watchdog<2.0.0,>=0.10.3, but you have watchdog 2.1.6 which is incompatible.

I tried to manually install the compatible packages, but it also did not work.

A few months back I successfully installed Phy on another machine, so it's not clear from where these errors come from. Maybe something is changed in the Anaconda environment?

crewl2 commented 2 years ago

Yes! That was my same error!

crewl2 commented 2 years ago

I’ve had success installing all every other computer except this one for some reason.

antimo-buonocore commented 2 years ago

Do you mean at this moment in time or in the past? I tried on two different computers and I get in both the same error. Any ideas on how to solve this?

crewl2 commented 2 years ago

This moment, with this specific computer. I've had success installing it on my laptop and another computer, but failed to install it on my other lab computer. I have no idea how to solve this issue.

antimo-buonocore commented 2 years ago

Hi, any update on this?

I tried a couple of things and if you manually create a new environment in anaconda and then install phy it works. I think in the previous version of the instructions they were explicitly specifying this step but now they removed anything related to anacoda and the command to create the new environment (you can check the history of the readme file).

So, for some reason, if you try to install phy on the base environment you would get conflicts.

Hope it makes sense (and that it's correct this way!).

crewl2 commented 2 years ago

I tried that, but when I try to install phy again it just says requirements already satisfied. Is it too late? Should I reinstall windows?

antimo-buonocore commented 2 years ago

I don't think you need to reinstall windows. Uninstall phy with with pip uninstall, then delete the environment so that you can start from scratch. Create a new environment in anaconda, install pip, install phy. This should work.

crewl2 commented 2 years ago

Okay, so I uninstall phy. Then I create the phy environment, then do I activate environment and install pip and phy in the activated environment??

antimo-buonocore commented 2 years ago

This worked for me. I believe you need a fresh environment (different from anaconda "base" environment ) to install phy. Before you were installing phy in anaconda "base" environment and this was not working.

crewl2 commented 2 years ago

It worked. I uninstalled phy, created a phy environment, then installed pip and phy in the activated phy environment. Installing pip was a challenge for me because python commands were not installed in the environment, but I used the anaconda navigator to install everything in the phy environment.

Thanks so much for the help. It worked!

antimo-buonocore commented 2 years ago

Great that it worked!

If I'm not wrong, you can install pip just with "conda install pip".

antimo-buonocore commented 2 years ago

To be precise, when you do "conda install pip" it will also install other packages needed by pip and python is one of them. So maybe to be precise, one should first create a new environment specifying the python version and then install pip and phy.

eliezyer commented 2 years ago

I was having the exact same problem, using xubuntu 18.04, and didn't understand why I couldn't install phy anymore. It would be good for a update on the installation instructions