System Path of Python in Windows and Ubuntu Posted on 2018-11-30 | Visitors: 1234import sys# print(sys.path)print("\n".join(sys.path)) Windows(PyCharm)123456789C:\Users\lixiang\PycharmProjects\otherC:\Users\lixiang\PycharmProjects\otherC:\Users\lixiang\PycharmProjects\other\venv\Scripts\python36.zipC:\Users\lixiang\AppData\Local\Programs\Python\Python36\DLLsC:\Users\lixiang\AppData\Local\Programs\Python\Python36\libC:\Users\lixiang\AppData\Local\Programs\Python\Python36C:\Users\lixiang\PycharmProjects\other\venvC:\Users\lixiang\PycharmProjects\other\venv\lib\site-packagesC:\Users\lixiang\PycharmProjects\other\venv\lib\site-packages\setuptools-28.8.0-py3.6.egg Windows(IPython)123456789C:\Users\lixiang\AppData\Local\Programs\Python\Python36\Scripts\ipython.exec:\users\lixiang\appdata\local\programs\python\python36\python36.zipc:\users\lixiang\appdata\local\programs\python\python36\DLLsc:\users\lixiang\appdata\local\programs\python\python36\libc:\users\lixiang\appdata\local\programs\python\python36c:\users\lixiang\appdata\local\programs\python\python36\lib\site-packagesc:\users\lixiang\appdata\local\programs\python\python36\lib\site-packages\IPython\extensionsC:\Users\lixiang\.ipython Python3.6 in Ubuntu123456/usr/lib/python36.zip/usr/lib/python3.6/usr/lib/python3.6/lib-dynload/usr/local/lib/python3.6/dist-packages/usr/lib/python3/dist-packages Python2.7 in Ubuntu12345678/usr/lib/python2.7/usr/lib/python2.7/plat-x86_64-linux-gnu/usr/lib/python2.7/lib-tk/usr/lib/python2.7/lib-old/usr/lib/python2.7/lib-dynload/usr/local/lib/python2.7/dist-packages/usr/lib/python2.7/dist-packages