Giter Club home page Giter Club logo

practicum's Introduction

For this project it is recommended to use Python 3.4, which the latest version of Flask is compatible with.

The pip command uses the Python Packages Index to install new Python packages made by others. This makes it super-easy to install Flask and other packages that you might want to use in future.

The pip command may already be installed. Try running pip in the terminal. If that does not work, download most recent version of pip, and install by running in the directory the download is stored in.

$ python get-pip.py --user

This isn't necessary but virtualenv makes it easy to use different packages, and even different versions of packages, in your Python projects. This project already contains the "virtual environment" for this project in the /flaskenv directory, but on your machine you can set up virtualenv on your project and keep Flask and it’s dependencies contained to just that project by running.

$ pip install --user virtualenv

Create a Python 3 virtualenv under the 'flaskenv' directory

$ virtualenv --python=python3 flaskenv

Activate the virtual environment

$ source flaskenv/bin/activate

The last step, activate sets up your terminal/command prompt session for using a contained Python3 installation in the flask-workshop directory. If you start up a new terminal then you will need to repeat the activation step again. The deactivate command can be used to return your terminal back to normal.

Now that we are in our virtual environment, we can install Flask.

$ pip install Flask

The database dependency for this project is of MongoDB, so it is necessary to install that to the virtual environment as well.

$ pip install Flask-PyMongo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.