How to solve the problem that python can not find the third-party installation library
How to solve the problem that python can not find a third-party installation library? in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Problem description: running environment: raspberry pie + ubuntu20.04. Execute the pip3 list directive, and the installation list shows that the library has been installed, and the runner still prompts that the library cannot be found.
Solution: add environment variables
Sudo vim / etc/profile
Append the PYTHONPATH environment variable
# PYTHONPATHexport PYTHONPATH=$PATH:/home/summergao/.local/lib/python3.8/site-packages # need to modify to your own package installation path
Refresh environment variables
Source / etc/profile 's answer on how to solve the problem that python can not find a third-party installation library is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.