ModuleNotFoundError: No module named 'visdom' when importing visdom

Viewed 4440

When i'm trying to run the following from python console (pycharm)

import visdom

When I try to run:

module = self._system_import(name, *args, **kwargs)

I get the following error:

ModuleNotFoundError: No module named 'visdom'

I've tried to install it through pip (pip install visdom), pip3 (pip3 install visdom) and conda (all the following commands):

conda install -c conda-forge visdom

conda install -c conda-forge/label/gcc7 visdom

conda install -c conda-forge/label/cf201901 visdom)

None of the above commands produced an error.

I'm using a Mac if it matters.

2 Answers

Always include full traceback firstly in your question. With what i have encountered before, try the following

Upgrade pip,

python -m pip install --upgrade pip

They try,

python -m pip install visdom

Try to install with pip:

Install Python server and client from pip

Requires Python 3

Related