Pip: Ubuntu 18.04, requires widgetsnbextension, which is not installed.

Created on 5 May 2018  ·  9Comments  ·  Source: pypa/pip

  • Pip version: pip3
  • Python version: 3.6.5
  • Operating system: Ubuntu 18.04

jiapei@jiapei-GT72-6QE:~$ pip3 check
launchpadlib 1.10.6 requires testresources, which is not installed.
ipywidgets 6.0.0 requires widgetsnbextension, which is not installed.

What to do? My manually-installed python packages are defaultly located at ~/.local/lib/python3.6/site-packages .

Cheers
Pei

downstream auto-locked support

Most helpful comment

Hi.
I've got the same errors in a different situation, and I solved the problem.

Try following commands:

apt search testresources
apt search widgetsnbextension

If you can't find (installed) in the result:

sudo apt install python3-widgetsnbextension
sudo apt install python3-testresources

And if you get similar error again, apt search command will help you.
(I modified wrong note, that is, replaced python3-launchpadlib as python3-testresources, sorry!)

All 9 comments

Hi.
I've got the same errors in a different situation, and I solved the problem.

Try following commands:

apt search testresources
apt search widgetsnbextension

If you can't find (installed) in the result:

sudo apt install python3-widgetsnbextension
sudo apt install python3-testresources

And if you get similar error again, apt search command will help you.
(I modified wrong note, that is, replaced python3-launchpadlib as python3-testresources, sorry!)

hello
try commends:
apt search testresources
apt search widgetsnbextension
I can find result, but the error is still there

Hi, @devinhee.
Give me the error message you got in detail, with copying it and paste here, please?

Thanks,
I solved it.

@devinhee how did you solve it?
i am still getting this error
launchpadlib 1.10.6 requires testresources, which is not installed.

python3.6.5 and pip3 on ubuntu18.04

@iakash2604
You just need to execute this.
sudo apt install python3-testresources

In general, we need to interpret:
e.g.
launchpadlib 1.10.6 requires testresources, which is not installed
as
(library) (version) requires (dependency), which is not installed

So, you need to search the name of (dependency) with apt search command.
And install it with sudo apt install command.

If you see a lot of candidates with apt search, just rely on your hunch, or experiment.

Thank you very much!
I will try this way!
I tried uninstalling pip3, and then install last version, the error gone. But if update, the error will be there.

发自坚果 Pro

Wakameskey notifications@github.com 于 2018年6月2日 下午10:31写道:

@iakash2604https://github.com/iakash2604
You just need to execute this.
sudo apt install python3-testresources

In general, we need to interpret:
e.g.
launchpadlib 1.10.6 requires testresources (dependency), which is not installed
as
(library) (version) requires (dependency), which is not installed

So, you need to search the name of (dependency) with apt search command.
And install it with sudo apt install command.

If you see a lot of candidates with apt search, just rely on your hunch, or experiment.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/pypa/pip/issues/5372#issuecomment-394091565, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Afm4Ks5VYgD71j3dRggdZ3hhTrxJ6PRsks5t4qGvgaJpZM4TznUK.

2 things.

  • This is a bug with debian's packaging. They've not included a dependency for a package when it has been specified as one.
  • The error message is unrelated to the package being installed. This will no longer be the case with the next pip release.

It looks like this was solved, but if anyone is still having issues then please let us know.

Was this page helpful?
0 / 5 - 0 ratings