- #Install python 2.7 ubuntu server install#
- #Install python 2.7 ubuntu server update#
- #Install python 2.7 ubuntu server archive#
- #Install python 2.7 ubuntu server code#
#Install python 2.7 ubuntu server install#
You will be prompted to provide the username and password 4.2 Install dependenciesĪfter the upload navigate to your upload directory Now upload your project files to your server via git to /mnt/coderepo/upload The location we have is: /mnt/coderepo/upload. Now that the virtual environment is ready, we’re going to upload our project files to some directory on the server.
Virtualenv helps you create several environments that have their own installation directories for setting up private python environments and their libraries that are specific to your project and its needs. Virtualenv is a tool for creating isolated Python environments. $ sudo apt-get install git libev4 libev-dev python-setuptools libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk 3 Setting up virtualenv Below command installs required git packages. To work with Git repository using command line, we will need to install git packages.
#Install python 2.7 ubuntu server code#
The MyProject code uses GitHub as code repository. 2.2 Install GIT and some required components The python-dev and build-essential packages are recommended to install along, because it isn’t possible to install any Python module that ships with a C extension without them later on.
#Install python 2.7 ubuntu server update#
If you get similar warnings, run the following command to update the package. Error messages will look similar to the ones belowĮrr trusty-updates/main l ibc-dev-bin amd64 2.19-0ubuntu6.3Įrr trusty-security/main libc-dev-bin amd64 2.
#Install python 2.7 ubuntu server archive#
You might get warnings about some missing archive files after the command is run. $ sudo apt-get install python-pip python-dev build-essential Make sure that the instances can access the internet to download the required files. If already not installed, we can install pip easily via below command. Pip is a tool for installing and managing Python packages. Furthermore, we should be able to have shell access to the server.Ģ Installing Dependencies 2.1 Installing Pip and other dependencies To start with we are assuming that we have an EC2 instance with fresh Ubuntu server installation with Python 2.7 installed and nothing else. This blog details out this deployment process step by step. The Apache uses mod_wsgi for connecting the WSGI application and mod_sec for security purposes. The core of application is Python DJango framework, which uses a custom virtual environment (vitualenv). We need to deploy our Python (2.7) based application in Apache webserver. We have the Ubuntu based AWS EC2 instance.