What are site-packages in python and can you install/use them if you aren't root?

后端 未结 3 832
北恋
北恋 2021-01-13 02:35

I am trying to install lldb in Linux to my home directory on my system (I do not have root access) and I have run into a problem with a step that was trying to create a subd

3条回答
  •  情歌与酒
    2021-01-13 03:06

    To answer the question as stated:

    site-packages is the location where 3rd party packages are installed (ie, not part of the core python distribution). On Linux you have to be root to write to it.

    To solve your issue:

    virtualenv is a python environment manager, which lets you for instance create your own python environments in your home directory. For an ultra-quick start with virtualenv and virtualenvwrapper (which makes virtualenv nicer to use) check out burrito.

提交回复
热议问题