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

后端 未结 3 841
北恋
北恋 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:20

    A possible solution that might help over all is to install virtualenv. It's a python package that helps set up some of these more annoying path redirection issues as well as gives you access to use pip and easy_install to install directly into your home directory.

    That's the long route.

    site-packages doesn't really mean much except for a known directory where python will look. You can change you PYTHONPATH environment variable to include other directories when you try to import. I'm not sure how you're installing, but a lot of times build processes allow you to specify a --prefix to tell the build and installation process where to actually output the files. I don't know enough about your particular case to be able to tell if that applies.

提交回复
热议问题