Skip to content Skip to sidebar Skip to footer

Python Can't Find Installed Module Slackclient On Macos. Any Suggestions?

I'm developing a slackbot. After importing slackclient, I got ModuleNotFoundError: No module named 'slackclient'. I tried all the options and followed suggestions showed in the po

Solution 1:

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

Solution 2:

there seems to be a conflict between slack versions and imports. If you are using slack >= 0.0.2 and slackclient >= 0.36.2, try this instead:

from slack.web.client import WebClient

you can check that WebClient class is defined in that directory.

Solution 3:

I was able to get it to work by using

from slack.web.client import WebClient

Solution 4:

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.

Post a Comment for "Python Can't Find Installed Module Slackclient On Macos. Any Suggestions?"