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.
Perhaps gcc/gdb may not be the best example -- together they are close to half the 500MB allotment for free accounts.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With