Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem that python can not find the third-party installation library

Shulou Source: shulou.com Published: 2022-06-03 07:24:33 11月15日 Update

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.

Tags: Questions environments variables third parties more help solutions run easy easy content methods guys partners instructions methods raspberries knowledge programs articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology OPPO Reno Microsoft Xiaomi Linux