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

  • jeeg
    (강철지그)
  • jeeg's Avatar 이 글의 작성자
  • Offline
  • Junior
  • Junior
더보기
18 Jul 2017 00:10 #2403 작성자: jeeg
jeeg 님의 글: 파이썬에서 site-package 위치 찾기 (How do I find the location of my site-packages directory)
$ 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())"
Time to create page: 0.056 seconds
Powered by Kunena Forum