ModuleNotFoundError for spyder-kernels module installed via pip

后端 未结 1 837
孤城傲影
孤城傲影 2021-01-18 15:14

I am attempting to use conda to install spyder-kernels and instantiate a kernel on a remote server as per the instructions here: https://docs.spyder-ide.org/ipythonconsole.h

相关标签:
1条回答
  • 2021-01-18 16:02

    Given your comment:

    "However, I know that earlier today this command worked fine."
    

    You may have a conda virtual environment set up which has become deactivated. Try this to see all your available conda environments:

    conda env list
    

    If there are any, you can do:

    conda list -n whicheverenvyouchoose
    

    to see if a given one has spyder_kernels installed.

    If and when you find it, simply do:

    conda activate whicheverenvyouchoose
    

    If you somehow don't have any, first, create a conda virtual environment for your work with the following:

    conda create -n whateveryoudcalltheenv python=x.y anaconda
    

    where x.y is your preferred version of python.

    then do:

    .  activate whateveryoudcalltheenv
    

    Now, go ahead and install your packages via:

    conda install -n whateveryoudcalltheenv stuff
    

    At that point, you should be good to go.

    When you're done with working in that environment, just:

    source deactivate
    

    No need to name it.

    0 讨论(0)
提交回复
热议问题