I have a conda environment where I have installed the wavelet package pycwt using:
conda install -n myenv -c conda-forge pycwt
as prescribed in the Anaconda cloud.
On my terminal, the command import pycwt works just fine. When I open a notebook on Jupyter Lab (within the virtual environment), running
import pycwt
yields
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-501c582ee37d> in <module>
----> 1 import pycwt
ModuleNotFoundError: No module named 'pycwt'
The same command works fine when I run it on a terminal within Jupyter Lab. Other packages I have installed in the virtual environment run just fine in both the notebook and on the terminal.
It looks like there are similar questions on StackOverflow here and here but neither have been answered yet.