You are not logged in.

#1 2018-06-14 08:18:06

Maruba
Member
Registered: 2018-06-11
Posts: 12

[Solved] Something is wrong with python and pip.

My system is up to date including the package youtube-dl

    $ youtube-dl -f 22 [............]

And:

    $ pip install packaging

    Traceback (most recent call last):
      File "/usr/bin/pip", line 6, in <module>
        from pkg_resources import load_entry_point
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 74, in <module>
        import packaging
    ModuleNotFoundError: No module named 'packaging'


Something is wrong with python and pip. I've already reinstalled them.

Last edited by Maruba (2018-06-21 05:13:45)

Offline

#2 2018-06-14 08:33:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [Solved] Something is wrong with python and pip.

What's that youtube DL invocation supposed to be? Don't post truncated outputs, post the entire output

Last edited by V1del (2018-06-14 08:33:33)

Offline

#3 2018-06-14 10:59:48

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] Something is wrong with python and pip.

pip depends on packaging, unless you trick pacman it should be impossible to install pip without it.

Check your installed packages for broken dependencies, and install python-packaging.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2018-06-14 11:50:55

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [Solved] Something is wrong with python and pip.

Did you try to perform an update with pip instead of pacman? e.g.

pip install --upgrade pip

This may install in a different location and then python gets confused and throws exceptions. I remember reading a thread like that, but I cannot find it now.

Last edited by progandy (2018-06-14 11:52:09)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB