PyCharm intellisense for boto3

前端 未结 8 1251
长发绾君心
长发绾君心 2021-02-18 15:49

having problems seeing full intellisense (code completion) options in PyCharm. working with python 3.4 on Windows. the suggests are partially working:

import bot         


        
相关标签:
8条回答
  • 2021-02-18 16:47

    Probably not an official method, but I did find something that works. In PyCharm, open python console (tools/python console). The console will also have variable list on the right side. If you initialize a resource object on the console, it will have its sub objects listed in variable object tree. Some limited intellisense as well.

    The way I started doing it, is writing code right into the interpreter using variable watch window as a cheat sheet. Once code is written, I copy/paste it into the actual script file. Clunky...

    0 讨论(0)
  • 2021-02-18 16:48

    Make sure that you:

    1. Install pyboto3 -> pip install pyboto3 | pip3.x install pyboto3
    2. Check your interpreter settings and verify that you see pyboto3 on the list
    3. Do a File -> Invalidate Caches/Restart

    After Pycharm restarts you should see intellisense working in your favor and all of the available methods for the service you are trying to use available to you!

    0 讨论(0)
提交回复
热议问题