查询python的安装路径
参考链接:
https://blog.csdn.net/orangleliu/article/details/44907221
(tf_14) novak@novak-ZBook15G2:~$ python -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())"
/home/novak/tf_14/lib/python2.7/site-packages
(tf_14) novak@novak-ZBook15G2:~$ python -c "import os; print os.__file__"
/home/novak/tf_14/lib/python2.7/os.pyc
(tf_14) novak@novak-ZBook15G2:~$ python -c "import sys; print sys.executable"
/home/novak/tf_14/bin/python
posted on 2018-08-26 21:29 lion_zheng 阅读(180) 评论(0) 编辑 收藏 举报