Python3.6 cant use installed pip packages

Hi,

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(cv2.__version__)
print(numpy.__version__)

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?

Hi,

This is a known issue in numpy library.
Please find the workaround in the below link:
https://elinux.org/Jetson/L4T/TRT_Customized_Example#.22Illegal_instruction_.28core_dumped.29.22

Thanks.

1 Like

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