How do I find the location of my Python site-packages directory?

前端 未结 21 3008
梦谈多话
梦谈多话 2020-11-22 03:06

How do I find the location of my site-packages directory?

21条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 03:39

    An additional note to the get_python_lib function mentioned already: on some platforms different directories are used for platform specific modules (eg: modules that require compilation). If you pass plat_specific=True to the function you get the site packages for platform specific packages.

提交回复
热议问题