Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing from source without apt-get in pythonanywhere

Maybe it's because I'm new to shared environments where I have no root access or the dpkg/apt family of tools, but I wanted to install from source (for instance, gcc/gdb), possibly by using wget to grab the tarball, unpack it, and point configure --prefix=$HOME, before calling make; make install, but I'm having some issues. Namely, the whitelist (obvious), and secondly the configure step is giving me trouble.

Can someone walk me through this process? Pythonanywhere comes with make, so it's not as if they don't want you doing this.

EDIT

Perhaps gcc/gdb may not be the best example -- together they are close to half the 500MB allotment for free accounts.

like image 983
yurisich Avatar asked Sep 14 '12 14:09

yurisich


People also ask

How do I install PythonAnywhere packages?

Using the --user flagTo install a package into your account so that your Python programs can see it by default, use one of the pip commands. There is one for each Python version: pip2. 7 installs modules for Python 2.7, pip3. 6 installs modules for Python 3.6, and so on.

Is PythonAnywhere good?

PythonAnywhere is a good hosting service for Python websites. You should select PythonAnywhere to host your websites if you are: A startup developing its apps using Python programming language. A team of web developers or data systems within a company and want to run apps for specific purposes.


1 Answers

Any pure python modules will install with ease. Unfortunately you can't install modules that require a compiler. The Python Anywhere staff is generally very accommodating to get packages requested installed to the battery's included for all to enjoy.

Feel free to make a request to the PA forum

or

Email the staff: [email protected]

For clarity. To install a pure python module you just use

pip-3.2 install --user <package_name>

Change 3.2 as needed for the Python version you want and of course change <package_name> to your desired package.

like image 126
a2j Avatar answered Sep 22 '22 20:09

a2j