Installation in MacOS

Hi,

I installed the DeepLabCut in my macOS. I do not had problems in all installation process (any errors).

However, when i try to launch the program did not works.
Please check the attachment.

If someone knows what is the problem, let me know.

Thanks in advance.

Screen Shot 2020-03-20 at 18.52.02

On MacOS you need to use pythonw - see: https://github.com/AlexEMG/DeepLabCut/blob/master/conda-environments/README.md

Simply run ipython or pythonw (macOS only) to lauch the terminal, jupyter notebook to lauch a browser session, or ipython/pythonw, import deeplabcut, deeplabcut.launch_dlc() to use our Project Manager GUI!

1 Like

Dear Alexander Mathis,

Thanks for your fast reply.
Unfortunately, when i used the pythonw i faced the same problem.
Screen Shot 2020-03-23 at 12.20.14

dear julia, can you copy/paste the code output, I can’t see the image.

Dear Alexander

This is the code output:

Last login: Mon Mar 23 12:19:17 on ttys000

You have mail.

(base) users-MacBook-Pro:~ JuliaPinho$ pythonw

Python 3.7.6 (default, Jan 8 2020, 13:42:34)

[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

import DeepLabCut

DeepLabCut.launch()

Traceback (most recent call last):

File “”, line 1, in

AttributeError: module ‘DeepLabCut’ has no attribute ‘launch’

When i used the ipython

Last login: Tue Mar 24 16:18:51 on ttys000
You have mail.
(base) users-MacBook-Pro:~ JuliaPinho$ ipython
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
Type ‘copyright’, ‘credits’ or ‘license’ for more information
IPython 7.12.0 – An enhanced Interactive Python. Type ‘?’ for help.

In [1]: import DeepLabCut

In [2]: DeepLabCut.launch()

AttributeError Traceback (most recent call last)
in
----> 1 DeepLabCut.launch()

AttributeError: module ‘DeepLabCut’ has no attribute ‘launch’

In [3]:

Dear Julia (this is Mackenzie ;),

You are not typing the function correctly. Please check the docs carefully: https://github.com/AlexEMG/DeepLabCut/blob/master/docs/UseOverviewGuide.md#option-2-using-the-project-manger-gui

pythonw
import deeplabcut
deeplabcut.launch_dlc()

Or, simply open the terminal and type:

pythonw -m deeplabcut

Dear Mackenzie

Sorry for the name exchange :),

Ok, I opened the terminal and type:
pythonw -m deeplabcut

now the code output:
Last login: Tue Mar 24 16:55:21 on ttys000

You have mail.

(base) users-MacBook-Pro:~ JuliaPinho$ pythonw -m DeepLabCut

/JuliaPinho/opt/anaconda3/bin/python: No module named DeepLabCut.__main__; 'DeepLabCut' is a package and cannot be directly executed

(base) users-MacBook-Pro:~ JuliaPinho$ pythonw -m deeplabcut

/JuliaPinho/opt/anaconda3/bin/python: No module named deeplabcut

(base) users-MacBook-Pro:~ JuliaPinho$

Thanks for your support

hi Julia, you are in “base” - I assume you installed deeplabcut with the provided CPU file? i.e. download from here: www.deeplabcut.org ? So, you need to enter the environment first.

i.e.

conda activate DLC
pythonw -m deeplabcut

Hi Mackenzie

I really not understand the problem.
I open the Anaconda, in environment i double click in top of “DLC-CPU”. And then i selected “open with ipython”.
Then i imported the deeplabcut.
The problem persist.

Last login: Thu Mar 26 14:05:15 on ttys000
You have mail.
. /JuliaPinho/opt/anaconda3/bin/activate && conda activate /JuliaPinho/opt/anaconda3/envs/DLC-CPU; ipython -i
(base) users-MacBook-Pro:~ JuliaPinho$ . /JuliaPinho/opt/anaconda3/bin/activate && conda activate /JuliaPinho/opt/anaconda3/envs/DLC-CPU; ipython -i
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
Type ‘copyright’, ‘credits’ or ‘license’ for more information
IPython 7.13.0 – An enhanced Interactive Python. Type ‘?’ for help.

In [1]: import DeepLabCut

In [2]: DeepLabCut.launch_dlc()

AttributeError Traceback (most recent call last)
in
----> 1 DeepLabCut.launch_dlc()

AttributeError: module ‘DeepLabCut’ has no attribute ‘launch_dlc’

In [3]:

I am sorry and i am feeling bad to bother you with this.

(1) it cannot be ipython, as we said above. It must be lowercase, as I show above.

please just search “terminal” open terminal (not anaconda)

in the terminal, you will see:

(base) users-MacBook-Pro:~ JuliaPinho$

then please put:

conda activate DLC-CPU

then you will see:

(DLC-CPU) users-MacBook-Pro:~ JuliaPinho$

then type:

pythonw -m deeplabcut

Last login: Thu Mar 26 16:31:06 on ttys000
You have mail.
(base) users-MacBook-Pro:~ JuliaPinho$ conda activate DLC
Could not find conda environment: DLC
You can list all discoverable environments with conda info --envs.

(base) users-MacBook-Pro:~ JuliaPinho$ conda info --envs

conda environments:

base * /JuliaPinho/opt/anaconda3
DLC-CPU /JuliaPinho/opt/anaconda3/envs/DLC-CPU

(base) users-MacBook-Pro:~ JuliaPinho$ conda activate DLC-CPU
(DLC-CPU) users-MacBook-Pro:~ JuliaPinho$ pythonw -m deeplabcut
/JuliaPinho/opt/anaconda3/envs/DLC-CPU/bin/python: No module named deeplabcut
(DLC-CPU) users-MacBook-Pro:~ JuliaPinho$

alright, now at least we know you’re in the correct env and calling it correctly. So, if it’s not popping up in your env it means you likely installed it differently than we recommend (i.e i’m guessing in the anaconda app). Or how you installed anaconda may be an issue (https://www.anaconda.com/how-to-restore-anaconda-after-macos-catalina-update/), but let’s try the below first:

So, now while you are inside the DLC-CPU env please run pip install deeplabcut

then you should get this:

(DLC-CPU) users-MacBook-Pro:~ JuliaPinho$ pip install deeplabcut
Collecting deeplabcut
  Using cached deeplabcut-2.1.6.3-py3-none-any.whl (386 kB)
Requirement already satisfied: python-dateutil in ./opt/anaconda3/envs/DLC-CPU/lib/python3.7/site-packages (from deeplabcut) (2.8.1)
Collecting pyyaml>=5.1
  Using cached PyYAML-5.3.1.tar.gz (269 kB)
Collecting tqdm
  Using cached tqdm-4.43.0-py2.py3-none-any.whl (59 kB)
Collecting scikit-learn
  Using cached scikit_learn-0.22.2.post1-cp37-cp37m-macosx_10_9_x86_64.whl (7.1 MB)
Collecting matplotlib==3.0.3
  Using cached matplotlib-3.0.3-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (14.3 MB)
Requirement already satisfied: ipython in ./opt/anaconda3/envs/DLC-CPU/lib/python3.7/site-packages (from deeplabcut) (7.13.0)
Collecting statsmodels
  Using cached statsmodels-0.11.1.tar.gz (15.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting imgaug
  Using cached imgaug-0.4.0-py2.py3-none-any.whl (948 kB)
ERROR: Could not find a version that satisfies the requirement intel-openmp (from deeplabcut) (from versions: none)
ERROR: No matching distribution found for intel-openmp (from deeplabcut)

I want to install Adobe and JDK on my mac. But that can’t be occurred and my friends told that this problem occurred due to the presence of some problems. Can anyone tell me how to uninstall apps on Mac OS X?