파이썬에서 site-package 위치 찾기 (How do I find the location of my site-packages directory)

조회 8,865 · 댓글 0
강철지그강철지그작성자2017년 7월 17일
$ python

Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import site; site.getsitepackages()
['/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages', '/Library/Python/3.6/site-packages']
>>>



python3 -c "import site; print(site.getsitepackages())"

로그인 후 답글을 남길 수 있습니다.