![]() This command will install a local copy of python and pip in a directory called venv within sampleapp directory which we just created.īefore we install any more components in our virtual environment we need to activate the environment so that pip install the components in our virtual environment. Next we'll create a virtual environment to store our python modules using the following command. Now we shall have virtualenv package installed in our system.Īfter this we can go ahead and create the project directory and activate our virtual environment. ![]() So new we'll install virtualenv package using pip to be able to create a virtual environment. Python virtual environments are useful to have a self-contained directory tree that contains a specific version of python and required components ensuring that we don't install them globally as other apps in the same system might need another version of the same library. Now lets setup a python virtual environment to create our flask application. Sudo apt-get install python-pip python-dev nginxĪfter this step completes, we should have pip, python-dev tools and nginx installed in the system. In the first step we'll install all the dependencies needed to setup the application from Ubuntu repositories and we'll start with installing python-pip which is a package manager for Python, python-dev which contains the header files needed to compile python extensions and Nginx which will work as a front end reverse proxy server for us. Step 1 - Setting Up Required Components and Tools
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |