python – ImportError: No module named bottle – PyCharm

python – ImportError: No module named bottle – PyCharm

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

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

src=https://i.imgur.com/imkzUJr.png/

python – ImportError: No module named bottle – PyCharm

The settings are changed for PyCharm 5+.

  • Go to File > Default Settings
  • In left sidebar, click Default Project > Project Interpreter
  • At bottom of window, click + to install or – to uninstall.
  • If we click +, a new window opens where we can decrease the results by entering the package name/keyword.
  • Install the package.
  • Go to File > Invalidate caches/restart and click Invalidate and Restart to apply changes and restart PyCharm.

    Settings

    Install package

Leave a Reply

Your email address will not be published.