🧵 Troubleshooting DeepLabCut installation: "Could not find a version" "No matching distribution" - articulateinstruments/AAA-DeepLabCut-Resources GitHub Wiki

Does your error look similar to this?

Pip subprocess error:
ERROR: Ignored the following versions that require a different python version: 0.0 Requires-Python >=3.5, <3.8; 0.0.1 Requires-Python >=3.5, <3.8; 0.0.2 Requires-Python >=3.5, <3.8; 0.0.3 Requires-Python >=3.5, <3.8; 1.0 Requires-Python >=3.5, <3.8; 1.0.1 Requires-Python >=3.5, <3.8; 1.0.2 Requires-Python >=3.7.1,<3.11; 1.0.3 Requires-Python >=3.7.1,<3.11; 1.0.4 Requires-Python >=3.7.1,<3.11
ERROR: Could not find a version that satisfies the requirement deeplabcut-live<=1.0.4,>=1.0.2 (from versions: 0.0b0)
ERROR: No matching distribution found for deeplabcut-live<=1.0.4,>=1.0.2
failed
CondaEnvException: Pip failed

If you get this error then it is probably because you already had Anaconda or Miniconda installed on your computer before you installed AAA. For an unknown reason, this causes a newly installed instance of Miniconda to be unable to download DeepLabCut.

We are still investigating the reason why this causes a problem. Unfortunately, the only solution which we are aware of at present is to completely uninstall all instances of Anaconda and Miniconda from your computer and remove all files left behind by them after uninstall, then reinstall them in a specific order.

Anaconda/Miniconda also contains a highly disruptive bug which occurs when you uninstall it: the bug causes your computer to be unable to run .bat files anywhere on your computer indefinitely afterwards, which causes many unrelated Windows programs to malfunction. However, this is easy to fix. Because of this, to avoid confusion please read through this page fully before uninstalling Anaconda or Miniconda.

This tutorial will require administrator privileges to complete. If you don't have admin privileges, please speak to whoever manages your computer and show them this tutorial.

Step 1: Back up your Anaconda and Miniconda environments

The process which you will follow later will require you to complete remove all traces of Anaconda and Miniconda from your computer, which will permanently delete all conda environments you have on this computer.

You should back up your conda environments now.

To do so, please follow the official instructions here:

Step 2: Uninstall Anaconda/Miniconda

Please uninstall all instances of Anaconda and Miniconda on your computer using the official Miniconda/Anaconda uninstaller.

You can find it by using your Windows Start menu to search for Add Remove Programs.

Then search the list of Apps & Features using the search box for conda to find the Anaconda/Miniconda uninstaller(s).

Step 3: Remove all Anaconda/Miniconda files that were left behind after uninstallation

Please find any Miniconda directories which have been left behind on your hard drive and delete them. You might find such folders in the following places:

  • C:\Users\your username\.conda\
  • C:\Users\your username\Miniconda3\
  • C:\ProgramData\Miniconda3\

Removing these folders should be sufficient, but if you wish to search your whole computer's storage then search for the substring "conda" in filepaths.

Step 4: Clean conda from the Windows Registry

Use your Windows Start menu to open the Registry Editor, which you can find by typing RegEdit into the Start menu.
image

Use the navigation bar at the top to go to

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

image

If in the navigation pane on the left you see a folder (aka. "key") called Miniconda3 which is a child folder of Uninstall (possibly with trailing version information), please select that Miniconda3 folder and delete it.

image

After that, please restart your computer (Miniconda uninstall seems to be quite messy and leaves lots of files lying around, some of which gets cleaned up on restart).

Step 5: Fix the uninstall bug that breaks .bat files

Open Powershell (eg. by searching your Windows Start menu for Powershell).

Paste the following command into Powershell and run it:

C:\Windows\System32\reg.exe DELETE "HKCU\Software\Microsoft\Command Processor" /v AutoRun /f

This command modifies an item in your Windows Registry which has become corrupted by a bug in Anaconda's uninstall process. This will restore Windows' ability to run .bat files. If you want to read more about this solution to the bug, click here.

After that, please restart your computer to ensure that startup scripts and Windows tasks are running correctly on your computer.

Please note that if you uninstall Anaconda or Miniconda again in the future, you will need to run this Powershell command again.

Step 6: Reinstall AAA using our latest installer

You can get the latest AAA installer from our website: https://www.articulateinstruments.com/downloads/

You don't need to run the AAA installer with Administrator privileges but you can if you want.

When choosing which components to install, please ensure that the following are all selected:

  • AAA Software
  • 'DeepLabCut' machine-learning tongue and lip tracking models
  • Default user settings.

PsqMx91QDbfMclOb

This should then show you a Miniconda installer part way through installation.

When presented with the option, please tell it to install for "Just Me".
This installs Miniconda into your user folder, which helps ensure that AAA has access to it and isn't blocked by Windows.
Leave all other options in the Miniconda installer at their suggested defaults, please, and proceed with the installation.

Tj2ooTlM0KMh4ZA3 UeOgk89PpRPJxjT0 A0zQUAl74e8woo2q

After installation of Miniconda is done, the AAA installer should then install DeepLabCut automatically.

If DeepLabCut is successfully installed, you will see this message:
ziF0Xt03acGz7TJe

AAA automatically performs a test of DeepLabCut after installation to check that it's working correctly. The above message appears if the test succeeds.

If you want to independently verify that it's working, then run AAA and use DeepLabCut to fit a spline to the example data. You can read a tutorial on how to do so by clicking here.

Step 7: Re-install the Anaconda/Miniconda you had before, and re-import your backed-up environments

If you are comfortable working with the command-line, and you want to keep things simple, you could re-import your backed-up environments into the version of Miniconda which was installed by AAA. This ensures only one instance of conda is installed on your computer, which might avoid future issues caused by multiple instances of conda conflicting, such as the error that brought you here.

If you want to install another instance of conda anyway, the latest versions of Anaconda and Miniconda can be downloaded from: https://www.anaconda.com/download/success

For re-importing your backed-up environments, please follow the official instructions here:

Step 8: Run AAA and verify that DeepLabCut still works after restoring your original work

This is to check that your installation of Anaconda/Miniconda and/or the restoration of your environments have not damaged DeepLabCut.

Please run AAA and use DeepLabCut to fit a spline to the example data. You can read a tutorial on how to do so by clicking here.

If it works correctly, you're done! Congratulations!

Troubleshooting suggestions (for if you encounter problems during this tutorial)

  • If the AAA installer automatically runs AAA and AAA crashes part way through startup when you'd be expecting it to install DeepLabCut, this is almost certainly caused by the bug in Anaconda that prevents .bat files running. Please ensure you did the step in which you run the Powershell line of code, which is described in Step 5. After you've done it, please go through the AAA install process from the installer again.
  • If the AAA installer just silently never runs the Miniconda installer even with the DeepLabCut models component ticked in the installer, please ensure you have done Step 4 to clean up Miniconda's uninstaller from the Windows Registry. Anaconda/Miniconda have a really messy uninstall process that leaves lots of stuff lying around, and making a fresh installation of Miniconda can go wrong if you don't manually clean up after it.

If you are still unable to resolve this, please contact us at Articulate Instruments and tell us as much as possible about the problems you are having. We will do our best to help you!

⚠️ **GitHub.com Fallback** ⚠️