In Anaconda, I have created a virtual environment and have created the kernel for it by running these lines in turn in the anaconda prompt:
conda create --name my