[Jupyter Notebook] Problems when using Jupyter Notebook

Jupyter Notebookall uses of

【0】jupyter notebookInstallation:

  • My own environment: I installed anacondamultiple environments with pip install jupyter notebook, but it has not been successful;
  • Finally, the installation was successful through the following command, and it import torchwas also successful (after watching the video of the mound, I remembered that it was installed like this before):
    conda install nb_conda
    
  • Then those errors reported later, there is no this time, and it can be run directly. (I installed it through pip first, then reported the following error, and then wrote this paragraph after successfully installing it again with conda)

The environment in [1] conda info -e, the processing method that cannot be displayed in JN:

python -m ipykernel install --user --name base
  • Here, --namethe parameters that follow are condathe environment names inside.
  • This command is run in a terminal.

[2] When using pip install --upgrade pipthe installation update pip, an error occurs Script file 'D:\Anaconda3\Scripts\pip-script.py' is not present., the solution:

easy_install pip
  • Solve it directly.

[3] pipWhen using the command, WARNING: Ignoring invalid distribution ipan error occurs, the solution:

WARNING: Ignoring invalid distribution ip
  • The above is the content of the error;
  • According to the path in the angle brackets after the ip, delete the following two folders;
    Please add a picture description
  • Cause analysis: When installing the package, it was interrupted in the middle.

Guess you like

Origin blog.csdn.net/weixin_42306148/article/details/129170449