Issue
I am trying to get a module slackclient installed in a virtual Python environment ... I am going crazy with this one.
I do the normal:
python3 -m venv slackenv
. slackenv/activate
pip3 install slackclient
But I get
python3.7
Python 3.7.6 (default, Jan 12 2022, 23:27:58)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import slackclient
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'slackclient'
This is with slackclient installed both in the virtualenv and in the main system pip list (showing up in both lists).
WHAT could be the issue? I have looked at this until my eyes crossed!
Solution
Despite the name of the package is slackclient
, the actual module is slack
, as can you see in the official page of the package. So, try this one:
import slack
it should work.
Answered By - PieCot Answer Checked By - Cary Denson (WPSolving Admin)