執行python3命令,回車
root@rrdloan-server:~/anaconda2/bin# python3
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print(django)
<module 'django' from '/usr/local/lib/python3.6/dist-packages/django/__init__.py'>
>>>
此時就知道python3安裝位置在/usr/local/lib/python3.6/目錄了
python2同理
