树莓派4B,在python3.7下,运行:
from imutils import perspective
报错:
ModuleNotFoundError: No module named 'scipy'
{
Downloading https://www.piwheels.org/simple/scipy/scipy-1.5.1-cp37-cp37m-linux_armv7l.whl (51.0 MB)
|██▍ | 3.9 MB 7.0 kB/s eta 1:52:05ERROR: Exception:
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 313, in recv_into
return self.connection.recv_into(*args, **kwargs)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1822, in recv_into
self._raise_ssl_error(self._ssl, result)
File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 1622, in _raise_ssl_error
raise WantReadError()
OpenSSL.SSL.WantReadError
..........
}
执行:pip3 install scipy 依然报错。
运行:sudo apt-get install python3-scipy OK!