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 related to
python
pycharm
bottle
importerror
In the case where you are able to import the module when using the CLI interpreter but not in PyCharm, make sure your project interpreter in PyCharm is set to an actual interpreter (eg. /usr/bin/python2.7) and not venv (~/PycharmProject/venv/...)
The settings are changed for PyCharm 5+.
Go to File > Invalidate caches/restart and click Invalidate and Restart to apply changes and restart PyCharm.
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":
Source: Stackoverflow.com