What's the difference between installing third-party libraries with pip on the command line and installing third-party libraries with package managers in ide?

I successfully installed a library on the command line of raspberry pie with the pip command, but
could not introduce that library in IDE thonny, and the
package manager only had the most basic libraries and did not show the newly installed ones.
what is the reason for this?

Mar.04,2021

I haven't used Thonny,. It seems that Thonny is separate from the Python installation address of the system. You can see if there is one under the location of your own ide Thonny installation package. If not, you can install

through Tools installation Open system shell provided by Thonny.

the libraries installed by pip are usually in a similar directory below. You can check whether there is a corresponding directory in the corresponding directory of your system

.

python2.7
/ usr/local/lib/python2.7/dist-packages
/ usr/lib/python2.7/site-packages

python3.5
/ usr/local/lib/python3.5/dist-packages
/ usr/lib/python3.5/site-packages

if you use VIRTUAL_ENV, it will be saved under lib/pythonX.Y/dist-packages in the corresponding environment

you can also use pip list plus pip show to see which libraries are available and where they are installed.


that's true. Thank you for the answer. Hee hee

Menu