You are not logged in.

#1 2024-06-08 09:16:16

archuser38013
Member
Registered: 2024-01-27
Posts: 96

[SOLVED] Python: No module named X error for everything on recent inst

I am not sure what is causing this since I have installed everything by the (arch) book in terms of only using pacman to install.

Examples

sudo pacman -Sy yt-dlp
sudo pacman -Sy python-pip

Output:

$ pip3
Traceback (most recent call last):
  File /usr/bin/pip3, line 5, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
$ which pip
/usr/bin/pip
$ yt-dlp
Traceback (most recent call last):
  File /usr/bin/yt-dlp, line 5, in <module>
    from yt_dlp import main
ModuleNotFoundError: No module named 'yt_dlp'
$

This is a recent install on a laptop and have not had cause to use python yet and now run up with this issue.

Last edited by archuser38013 (2024-06-08 11:26:11)

Offline

#2 2024-06-08 09:31:06

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,573
Website

Re: [SOLVED] Python: No module named X error for everything on recent inst

You're performing partial upgrades. Don't do that.

https://wiki.archlinux.org/title/System … nsupported

Fully update your system, and see if that resolves the issue.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2024-06-08 09:41:39

xerxes_
Member
Registered: 2018-04-29
Posts: 843

Re: [SOLVED] Python: No module named X error for everything on recent inst

Don't install python packages by pip (or any packages by anything else, maybe one exception are "good" pacman wrappers) with root rights in system as it brake pacman full system update: error "file exist in filesystem" and then you would have to clean the system from files not installed by pacman.

Last edited by xerxes_ (2024-06-08 09:55:54)

Offline

#4 2024-06-08 11:22:48

archuser38013
Member
Registered: 2024-01-27
Posts: 96

Re: [SOLVED] Python: No module named X error for everything on recent inst

WorMzy wrote:

You're performing partial upgrades. Don't do that.

https://wiki.archlinux.org/title/System … nsupported

Fully update your system, and see if that resolves the issue.

Thanks yes that seems to have fixed it.

Oops. Yes I knew that but I find myself doing it 'now and then' to prevent having to do a full upgrade and possibly breaking the system at an inconvenient time and before I know it 'now and then' has been many months smile.

I just completed an upgrade and the seems to have fixed it.

I shall aim to do full upgrades more often.

Last edited by archuser38013 (2024-06-08 11:27:39)

Offline

Board footer

Powered by FluxBB