报错:
r@r-X11DAi-N:~$ sudo pip install scipy
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
解决:
参考:pip升级后Import Error:cannot import name main解决方案
新的报错:
r@r-X11DAi-N:~$ sudo pip install numpy
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
WARNING: The directory '/home/r/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disable