Python can't find installed module slackclient on MacOs. Any suggestions?

后端 未结 2 819
悲&欢浪女
悲&欢浪女 2020-12-21 20:19

I\'m developing a slackbot. After importing slackclient, I got ModuleNotFoundError: No module named \'slackclient\'.

I tried all the options and follow

相关标签:
2条回答
  • 2020-12-21 20:43

    The current version of slackclient for Python3 is 2.1.0.

    To upgrade your environment run:

    $ pip3 install slackclient --upgrade
    

    You find the latest slackclient here.

    0 讨论(0)
  • 2020-12-21 20:44

    Using slackclient version 2

    $ pip install slackclient --upgrade
    $ pip freeze
    

    slackclient==2.1.0

    from slack import WebClient

    OR, Using slackclient version 1

    $ pip install slackclient==1.3.1
    

    from slackclient import SlackClient

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