From the course: Building RESTful APIs with Flask

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Exporting your project’s requirements file

Exporting your project’s requirements file

From the course: Building RESTful APIs with Flask

Start my 1-month free trial

Exporting your project’s requirements file

- [Instructor] Our API is complete, and we're ready to start thinking about how to deploy it into a production environment. The first thing you need to do in any python project is to export a requirements file. This is just a text file that lists all the dependencies and third party libraries we've been adding as we developed our application. When we set up our product it would be a real pain to try to remember all the libraries we added along with any dependencies. Unfortunately for this there's no slick GUI and PyCharm for this right now, so we'll have to do it the old fashioned way using the terminal. Open your terminal. I'm going to use the one here in PyCharm, and remember that this automatically activates my virtual environment and puts me into the project root. If you're not using PyCharm, I just wanted to remind you to activate your virtual environment and switch to the project root. In your terminal window type in the command pip freeze and press enter. This is going to…

Contents