This article is mainly about looking at the Python installation path and installation package path tips, this article uses the command line to run the Python code method to detect the installation path and installation package path, the need for friends can refer to the following
Linux, in particular, has a number of python, sometimes unable to find the absolute path of Python, sometimes with a Django, and can not find the Django installed where the. Of course there are a number of ways to view, here are listed several, for inexperienced people to refer to.
Copy code code as follows:
G:codemoniter>python-c "from distutils.sysconfig import get_python_lib; Print (Get_python_lib ()) "
G:codemoniter>python-c "Import os; Print os.__file__ "
G:codemoniter>python-c "Import sys; Print Sys.executable "
In fact, just know the Python home path to do.