Forums

can't use sudo-apt command

I can't use sudo-apt command in the bash shell as I need to install "libjpeg-dev" which is a mandatory package for handling image related functionalities since my app is an ecommerce one I can't full fill it with out using images.

Hi hashgrocery,

I think harry already responded to your email, but libjpeg-dev is already installed on the servers. You will not be able to sudo apt-get install packages but we do have gcc and g++ for anyone who needs to compile packages manually. See our PythonAnywhere wiki page here about installing python packages!

A couple tips about installing packages:

  • if you are not using a virtualenv, check if we already have the package installed for you with pip show
  • Also, note that you need to run pip install --user to install outside of a virtualenv.
  • Also if you want to install python3 packages, you need to use say pip3.4 install instead of just pip install.