Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:59:58+00:00 2026-06-10T04:59:58+00:00

I have manually built numpy , scipy , matplotlib etc – without root privilages

  • 0

I have manually built numpy, scipy, matplotlib etc – without root privilages (I needed fresh matplotlib). All libs installed in the standard place:

~/.local/lib/python2.7

Now when I’m trying to install anything related – synaptic suggest me to install all the libs system wide. Is there a way I can tell synaptic to use the locally installed libs?

I tried to link ~/.local/lib/python2.7/site-packages to /usr/lib/python2.7 – no help.

Edit:

If I clone a python package, and change the name in the setup.py to the name of the ubuntu package, and then build:

python setup.py bdist --format=rpm

and then convert it to deb with alien:

sudo alien -k my.rpm

and then install the deb:

sudo dpkg -i my.deb

then synaptic does recognise it as a package (remember I’ve tweaked the name in setup.py).

But I can’t find a way to make synaptic aware of locally installed python libs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:59:59+00:00Added an answer on June 10, 2026 at 4:59 am

    How can a package manager, that manages packages at a system level, know anything about something that is installed in a user directory, something that is the opposite of the system level?

    A package manager resolves dependencies based on meta-information stored in a package (be it rpm, deb, whatever) and/or package repository.

    To achieve your goal you can go either of two options.

    First is to build a system-specific package from your sources and then install it via your package manager. See Creating Built Distributions docs for that. It would look something like this:

    $ python setup.py bdist --format=rpm
    $ rpm -i dist/$PACKAGE.rpm
    

    That would make your package manager aware of the fact that some dependencies are already provided.

    This approach may or may not work.

    The other, preferred, option is to use python package manager such as pip and install all your packages in a virtual environment. There are several advantages of this method:

    1. You can have several distinct package sets, with different versions of packages installed.
    2. You can optionally isolate your virtual environment from the packages installed system-wide.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we have a SOA system built on top of EJB 3.0. we are manually
In my table I have looked manually and found that the top three idle
Is there a way that I manually have a user look up the current
I have a number of manually written scripts (.sql) for tables, views and stored
I have researched how to manually include a PlaceHolder Text in UITextView (as there
I have a db where I manually add data. Some of the fields are:
I have a DataGridView where I manage manually the focused cells when navigating with
I have a form which I create manually (a lot of JavaScript in it...).
I have a DataTable that I manually created and loaded with data using C#.
I have a webview and I want to manually switch to another tab during

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.