Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Using Databases in Python Meet Peewee Modeling

How can I run the peewee examples with pycharm using Anaconda

I have the latest pycharm professional edition and I would like some help in configuring peewee with pycharm so that I can run all the examples in this course. Any help is appreciated.

4 Answers

Alx Ki
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alx Ki
Python Web Development Techdegree Graduate 14,822 Points

Hi, ajithadapa !

You can run them same as in workspaces.

  1. Create new project in pure python.
  2. Go to file-settings-project interpreter
  3. click + and install peewee
  4. Now you can import peewee as "from peewee import *"
  5. And play with it in your file or python console.

Does it help?

best, alexey

Thanks Adrian Yang

Can you elaborate more about step 3. When I search for "peewee" I am not seeing any repositories with the same name. I even tried adding repository by giving "https://github.com/coleifer/peewee" which did not make any difference to my search list.

Thanks. But I am using anaconda on Windows 7 machine. That could be the reason why I dont see the peewee package. Is there any step to do the same for Anaconda ?

Updated the post header with Anaconda information

See: https://anaconda.org/conda-forge/peewee In your terminal run: conda install -c conda-forge peewee