Python3.6 cant use installed pip packages


I installed pip and pip packages with following comands:
sudo apt-get update && sudo apt-get install python-pip python3-pip

and install the packages with : python3 -m pip install opencv-python etc. but my programm doesnt work.

import cv2
import numpy


print("python funktioniert")

I get the error Illegal Instruction (core dumped)

If I check the path of the new installed packages it shows that they have another path than the others.

new packages are in /home/$user$/.local/lib…

and the others which cames with pip are in /usr/lib/… which can be used with python.

how can i move those packages to the right path?


This is a known issue in numpy library.
Please find the workaround in the below link:


1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.