TAO classification /bin/sh: 1: pip3: not found

So I have already sent you the only config.json that still exists, but here it is again:

Please advise

So, can you run below successfully now?
$ docker run --runtime=nvidia -it --entrypoint="" -p 8888:8888 --rm -v /var/run/docker.sock:/var/run/docker.sock -v yourlocal_folder_where_store_notebook:/test
nvcr.io/nvidia/tao/tao-toolkit-tf:v3.22.05-tf1.15.5-py3 /bin/bash

Hi again
I have read’ Chmod: cannot access ‘/opt/ngccli/ngc’: No such file or directory - #2 by Morganh

I have followed the approach 2

However there is an error in the path:
’ lib/python3.6/site-packages/tao/components/docker_handler/docker_handler.py’
on my machine at least it should read

approach 2 was simple to implement (after error was found)
approach 1 just scrambled my brain

I am back in the notebook
The notebook cannot find pip3

62 exchanges later can we pick it up here?
How do I install pip3 in the notebook?
please, thank you

No, you need not use the workaround(approach 2) now. We already provide the fix. If you run tao launcher instead of “docker run”, just need to update the wheel.
$ pip3 install nvidia-tao==0.1.24

‘Requirement already satisfied’
tao list shows:

How do I install or import or download pip3 into the Jupyter notebook?

I still suggest you to figure out why you cannot find pip3 in notebook. Actually other users do not have this issue.

See below screenshot you shared previously.

Can you activate the conda environment that you have just created.

$ conda activate launcher

$ pip3 install nvidia-tao

then, trigger notebook
$ jupyter notebook --ip --allow-root --port 8888

answer “no”.
The shell environment in Jupyter notebook is supposed to match the Python version used to launch the notebook. I am paraphrasing from :
This is not happening here. I have precisely followed your instructions.
also it looks like the notebook is currently using python 3.7, not python 3.6

Please advise

Above is my log. May I know what’s your info?

Currently it is this.

$ which jupyter


The “pip” it is running is pip3, so it is looking for “pip”, not “pip3”.
As I am the only person who has reported this problem, this may not even be a bug, but it looks like one from here.
Do I win a prize for the longest thread? Please let me have your response.

Very glad to know that you get it working now!
It is a good case in case other users meet the same error in future.

Hi again Morganh.

I am concerned that running the next cell throws a type error relating to its own code. Is it possible that some recent updates have only been partially implemented? This notebook appears to be quite buggy.

I can open this new point in another thread, but this seems to relate to the notebook only. And I had to rewrite notebook code to solve the above issue.

I think you forget to run one cell above. The DATA_DIR should be defined.

I “reran all the cells above” the new cell and the tdqm and matplotlib cell is now throwing a large number of errors (a short example included here):

The new cell now runs but tdqm is not found at ‘LOCAL_DATA_DIR’. I will look into this and edit this post again.

Can you exit the notebook and follow TAO Toolkit Quick Start Guide — TAO Toolkit 3.22.05 documentation to install jupyter again?

As mentioned in user guide,
pip3 install jupyter
jupyter notebook --ip --allow-root --port 8888

I have no idea why your “jupyter” bin file locates at /snap/bin/

This looks better

This doesn’t.
(I still have the same ‘LOCAL_DATA_DIR’)

Everytime you trigger notebook, it is needed to run the cells which set env.
If you are not sure one env, you can make a new cell to check.
For example,
!echo $DATA_DIR

Thanks, that did it.