centos上装python3.7后,在/usr/bin/建立链接python链接到/usr/local/python37/bin/python3.7
[root@localhost bin]# python3
Python 3.7.1 (default, Dec 11 2018, 06:18:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linuxType "help", "copyright", "credits" or "license" for more information.
import matplotlib
exit()
使用python3命令,可以import pip的模块
[root@localhost bin]# python
Python 3.7.1 (default, Dec 11 2018, 02:02:58) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linuxType "help", "copyright", "credits" or "license" for more information.
import matplotlibTraceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'matplotlib'
使用python命令,无法导入
[来自 Cnblogs For Xamarin]