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 6241497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:46:41+00:00 2026-05-24T11:46:41+00:00

I console access to a computer where I do not have root nor sudo

  • 0

I console access to a computer where I do not have root nor sudo rights.

Python version is 2.5.2 and numpy is not available. I cannot use python setup.py install –user nor there are any compilers available on the machine.

Can I somehow use the compiled packages available https://edge.launchpad.net/~scipy/+archive/ppa/+packages without installing them? I tried importing the numpy module directly but it complains:

Python 2.5.2 (r252:60911, Jan  4 2009, 21:59:32)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/home/XXX/temp/python-numpy-1.2.1/numpy/__init__.py", line 121,
 in <module>
    raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python intepreter from there.
>>>

Thanks!

Update:
The sysadmin will not install any kind of software in the machine (it’s a VPS and my guess is that they have a standard image for deployment). They are crazy paranoic, they won’t even tell me what flavor of unix they are running, and even the Apache service has the version number obfuscated! This is all the information I get upon login:

Linux server1 2.4.22 #4 SMP Wed Nov 5 17:44:16 CET 2003 i686 unknown

And for compiling:

python setup.py install --home=~
[...]
RuntimeError: Broken toolchain: cannot link a simple C program

cat /proc/version

Linux version 2.6.32.25-grsec-dh (root@dl345.dinaserver.com) (gcc version 4.3.2
(Debian 4.3.2-1.1) ) #2 SMP Wed Nov 3 13:21:01 CET 2010
  • 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-05-24T11:46:43+00:00Added an answer on May 24, 2026 at 11:46 am

    If you can resolve all the dependencies, you might be able to install it in your $HOME using dpkg. dpkg doesn’t resolve dependencies automatically, so you might have to figure out the right order to install the packages in. Download the .deb files that you’re interested in and run the following command for each package:

    $ dpkg -i --force-not-root --root=$HOME mypackagename.deb
    

    If you then add the directory with the newly installed Numpy to your $PYTHONPATH, or to sys.path, Numpy might just work.

    Alternatively, you might be able to extract the files you need from one of the other binary distributions of Numpy around (such as Sage).

    Numpy is quite fussy about what versions of its dependencies it requires though, so you’re probably best off downloading the packages for the specific version of Linux that you’re using.

    Finally, consider asking your administrator whether s/he’ll install Numpy for you. You’d be surprised how often a simple request can solve all your problems, especially since it’s just one apt-get command.

    EDIT: Just as an alternative, if you can get access to another machine running the same version/architecture of Ubuntu/Debian, you might be able to download the numpy source tarball, compile with python setup.py build and then just copy everything in directory_where_you_extracted_the_tarball/build/numpy/lib.OS-arch-PythonVersion (on my system, it is lib.linux-x86_64-2.6/) to a directory of your choice on the target machine. Then, just add that directory to your $PYTHONPATH and you’re done. Remember to copy the contents, not the whole directory (tar -jcf np.tar.bz2 /path/to/numpy/build/numpy/lib.OS-arch-PythonVersion/numpy then get the tar.bz2 to the remote machine and extract it in a directory of your choice).

    There is some documentation on how to use setuptools here: http://docs.python.org/install/index.html#how-installation-works

    Building Numpy by hand is not for the faint of heart though, so this might lead to a lot of head-banging and hair-tearing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I have a console application that needs to access a network share with
I have a console application in C++. I need to access a functionality from
I have an app deployed on Heroku. I can access the remote heroku console
Is it possible to install and use ZF (+ its console tool) without access
I need to access COM port (console) via script to access our DSL modem.
In a .NET Win console application, I would like to access an App.config file
The full message that I got on the console is: Invalid memory access of
I have a console app that needs to display the state of items, but
I have a console program written in C# that I am using to send
I have a Windows Service written in C#. It includes a standalone console mode

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.