-1

I can run a config software from a virtual environment that ends up with the following error:

  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'kiwisolver 

However, if I try to install it I get:

$ pip3 install kiwisolver
Requirement already satisfied: kiwisolver in /usr/lib/python3/dist-packages (1.3.2)

What am I missing here?

1
  • 2
    you may have two Pythons installed (/usr/lib/python3/ and /usr/lib/python3.11/) and pip3 installs modules for one Python but you run code with other Python. You could use python -m pip ... (or even python3.11 -m pip ...) instead of pip3 Commented Nov 3 at 16:46

1 Answer 1

2

you may have two Pythons installed (/usr/lib/python3/ and /usr/lib/python3.11/) and pip3 installs modules for one Python but you run code with other Python. You could use python -m pip ... (or even python3.11 -m pip ...) instead of pip3

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.