Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>1: Installing third party packages to hosted spaces</strong> </p> <p>You can indeed install third party packages to your hosted space. If it's a pure python package, all that's needed is to unpack it to a directory and then add that directory to your PYTHONPATH environment variable or <code>sys.path</code>.</p> <p>This can be tiring to do often, and won't work easily for compiled modules. If you have shell access to your python host, the excellent <a href="http://pypi.python.org/pypi/virtualenv" rel="noreferrer">virtualenv</a> package allows you to do set up a private python environment with its own libraries.</p> <p>To set up your virtualenv, you'll do something like this at the shell:</p> <pre><code>$ virtualenv $HOME/my_python $ $HOME/my_python/bin/easy_install numpy </code></pre> <p>You can keep running easy_install for anything else you want to install in your personal python environment.</p> <p>Now, when you write your python scripts, you will want to use your private python interpreter, if that is possible:</p> <pre><code>#!/home/myuser/my_python/bin/python import numpy # script here </code></pre> <p>If your python env cannot be specified (such as if run by mod_wsgi), you will need to add it to the import path:</p> <pre><code>import sys sys.path.insert(0, '/home/myuser/my_python/lib/python2.5/site-packages') import numpy </code></pre> <p><strong>2: Hosting sites with numpy</strong></p> <p>I can't think of any hosting sites offhand which offer numpy pre-installed. However, <a href="http://www.dreamhost.com/" rel="noreferrer">Dreamhost</a>/Bluehost for sharedhosts provide SSH access, and with shell access you can install numpy using the methods I described above. Any Virtual Private Server such as <a href="http://www.linode.com/" rel="noreferrer">Linode</a>/<a href="http://www.slicehost.com/" rel="noreferrer">Slicehost</a> will allow you to install whatever you desire, as well.</p> <p><strong>3: AppEngine</strong></p> <p>As mentioned above, AppEngine will not allow you to install C extensions (but pure python ones do work) so it's unlikely numpy will work for you on there, since I suspect some of its features use C speedups.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload