A summary of the problem of "E: Unable to locate the software package" for the modules required by the Raspberry Pi to install Python

1. Mirror source problem

  • Add a new mirror in /etc/apt/sources.list source generally choose Tsinghua source to find tutorials Qinghua source of online time, attention is Ubuntu or raspbian of .

二、sudo apt-get install python-xxx

  • Download Python module-related instructions need to add python-
    such as:

Install the pandas module
under linux: sudo apt-get install python-pandas

Install the numpy module
under linux: sudo apt-get install python-numpy

Install matplotlib
under linux: sudo apt-get install python3-matplotlib

Three, pip is not installed

Install pip enter the following command

sudo apt-get install python-pip

After installation, just install the python module directly with pip install as in windows, without apt-get install.
For example:

pip install imutils

Guess you like

Origin blog.csdn.net/zouchengzhi1021/article/details/113995650