howdy icon indicating copy to clipboard operation
howdy copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'pip3'

Open JanChec opened this issue 3 years ago • 19 comments

FileNotFoundError: [Errno 2] No such file or directory: 'pip3'

occurs when installing from the repo, as per instruction for Ubuntu from the main GitHub page (added repo, updated, then the installation command like below). As result howdy is not installed as a command (which howdy returns nothing).

$ sudo apt install howdy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  nvidia-cuda-dev
The following NEW packages will be installed:
  howdy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/38,9 kB of archives.
After this operation, 166 kB of additional disk space will be used.
Selecting previously unselected package howdy.
(Reading database ... 214619 files and directories currently installed.)
Preparing to unpack .../archives/howdy_2.6.1_all.deb ...
Starting IR camera check...

Trying "Integrated Camera: Integrated I"
One of your cameras should now be on.
Did your IR emitters turn on? [y/N]: y

Starting certainty auto config...


After detection, Howdy knows how certain it is that the match is correct.
How certain Howdy needs to be before authenticating you can be customized.

F: Fast.
Allows more fuzzy matches, but speeds up the scanning process greatly.

B: Balanced.
Still relatively quick detection, but might not log you in when further away.

S: Secure.
The safest option, but will take much longer to authenticate you.

You can always change this setting in the config.
What profile would you like to use? [f/b/s]: s

Unpacking howdy (2.6.1) ...
Setting up howdy (2.6.1) ...

>>> Upgrading pip to the latest version

Traceback (most recent call last):
  File "/var/lib/dpkg/info/howdy.postinst", line 110, in <module>
    handleStatus(sc(["pip3", "install", "--upgrade", "pip"]))
  File "/usr/lib/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pip3'
dpkg: error processing package howdy (--configure):
 installed howdy package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
 howdy
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ which pip3
/usr/local/bin/pip3
$ pip3 --version
pip 21.3 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)


I've searched for similar issues already, and my issue has not been reported yet. :)

Linux distribution (if applicable): Ubuntu 21.04

Howdy version (sudo howdy version): 2.6.1

JanChec avatar Oct 22 '21 09:10 JanChec

I have the same problem (Ubuntu 21.10)

Banjalucan avatar Oct 23 '21 09:10 Banjalucan

Please install pip3: sudo apt install python3-pip

boltgolt avatar Oct 24 '21 18:10 boltgolt

sudo apt install python3-pip

Thanks for the help. Unfortunately, this did not work because pip3 was already installed and I received the following message: python3-pip is already the newest version (20.3.4-4).

I also tried sudo apt reinstall python3-pip, but this didn't help either.

Any other suggestions?

Banjalucan avatar Oct 24 '21 20:10 Banjalucan

Same problem here. (Kubuntu 21.10)

jergao avatar Oct 26 '21 12:10 jergao

What does which pip3 give you?

boltgolt avatar Oct 26 '21 14:10 boltgolt

/usr/local/bin/pip3

jergao avatar Oct 26 '21 14:10 jergao

One fix would be to open the .deb with the archive manager and replacing pip3 with /usr/local/bin/pip3 in the postinst file. I guess. Not sure what's going on here

boltgolt avatar Oct 26 '21 14:10 boltgolt

Same issue on Pop OS

expl0r3rgu1 avatar Feb 08 '22 21:02 expl0r3rgu1

I also got this on Ubuntu 21.10 the second time I installed it. Worked first time, but when I uninstalled it and installed it again it failed.

ghost avatar Feb 09 '22 21:02 ghost

same in Debian 5.10

yingmanwumen avatar Apr 03 '22 15:04 yingmanwumen

I also got this on Ubuntu 21.10 the second time I installed it. Worked first time, but when I uninstalled it and installed it again it failed.

Same problem, solved by doing: sudo apt remove --purge howdy sudo apt install --reinstall python3-pip sudo apt install howdy It works now after a complete re-installation of howdy, I don't know what was wrong... Maybe the path to pip3 but I'm not sure and didn't check...

Onion2222 avatar Apr 25 '22 16:04 Onion2222

I think I might know what's going on: immediately before the install crashes, pip says

WARNING: The scripts pip, pip3 and pip3.9 are installed in /usr/local/bin which is not on PATH. 

Maybe it can't find pip3 because it's, as pip says, not on the PATH by default?

MrConorAE avatar Apr 26 '22 09:04 MrConorAE

Added /usr/local/bin to PATH, no effect. :/

Also, for me, which pip3 returns /usr/local/bin//pip3. Is that double slash causing side effects? If I reinstall pip, it changes back to /usr/bin - this only happens after Howdy force-installs pip again (during the "upgrading pip to the latest version" step)

MrConorAE avatar Apr 26 '22 09:04 MrConorAE

Another away to fix the problem, sudo ln -sv $(which pip3) /usr/bin/pip3

vslm698-p avatar Jul 20 '22 08:07 vslm698-p

@vslm698-p thanks man, this works for me: sudo ln -sv $(which pip3) /usr/bin/pip3

jcatama avatar Jul 26 '22 05:07 jcatama

sudo pip3 list Here, it is an error caused by my insufficient permission. pip3 install --upgrade pip

liqi001 avatar Aug 10 '22 04:08 liqi001

same issue on Debian 11

egberts avatar Sep 13 '22 16:09 egberts

sudo pip3 list Here, it is an error caused by my insufficient permission. pip3 install --upgrade pip This worked for me on Debian 11 ( Bullseye )

upst-io avatar Sep 15 '22 15:09 upst-io

In a particular environment i only have user rights - so i am using the "--user" install option within pip. But even then such an install will still fail for me with that message (along with some calls stacks):

FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.8'

If that binary is not there, then its not there and the tooling should not fault but only warn about that - at least my best case of understanding for the moment.

But there is an interesting side note:

WARNING: The scripts pip, pip3, pip3.11 and pip3.8 are installed in '/home/<username>/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

I will give that warning some attention now and try out some path addition...

alexanderLinear avatar Aug 16 '23 08:08 alexanderLinear