ImportError: No module named 'bottle' - PyCharm


I installed bottle on python3.4 with pip install. In terminal, when I do:

$ python3.4
>>>import bottle # shows no import error

but when I do it in PyCharm, it says "import bottle ImportError: No module named 'bottle'"

This question is tagged with python pycharm bottle importerror

~ Asked on 2014-09-26 22:35:46

The Best Answer is


in your PyCharm project:

  • press Ctrl+Alt+s to open the settings
  • on the left column, select Project Interpreter
  • on the top right there is a list of python binaries found on your system, pick the right one
  • eventually click the + button to install additional python modules
  • validate

enter image description here

~ Answered on 2014-09-26 22:51:47


In some cases no "No module ..." can appear even on local files. In such cases you just need to mark appropriate directories as "source directories":

Mark as source lib directory

~ Answered on 2018-03-19 12:25:24

Most Viewed Questions: