重装了电脑后,原来的快捷方式都找不到了。
我搜了一阵子找不到jupyter的打开位置。
我只能退而求其次,在工程文件夹打开cmd,然后conda activate tensorflow1
jupyter-notebook解决
Microsoft Windows [版本 10.0.19042.928]
(c) Microsoft Corporation。保留所有权利。
C:\Users\xutengfei>conda
usage: conda-script.py [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.
Options:
positional arguments:
command
clean Remove unused packages and caches.
config Modify configuration values in .condarc. This is modeled
after the git config command. Writes to the user .condarc
file (C:\Users\xutengfei\.condarc) by default.
create Create a new conda environment from a list of specified
packages.
help Displays a list of available conda commands and their help
strings.
info Display information about current conda install.
init Initialize conda for shell interaction. [Experimental]
install Installs a list of packages into a specified conda
environment.
list List linked packages in a conda environment.
package Low-level conda package utility. (EXPERIMENTAL)
remove Remove a list of packages from a specified conda environment.
uninstall Alias for conda remove.
run Run an executable in a conda environment. [Experimental]
search Search for packages and display associated information. The
input is a MatchSpec, a query language for conda packages.
See examples below.
update Updates conda packages to the latest compatible version.
upgrade Alias for conda update.
optional arguments:
-h, --help Show this help message and exit.
-V, --version Show the conda version number and exit.
conda commands available from other packages:
build
convert
debug
develop
env
index
inspect
metapackage
render
server
skeleton
verify
C:\Users\xutengfei>conda activate tensorflow1
(tensorflow1) C:\Users\xutengfei>jupyter-notebook
[I 12:04:21.544 NotebookApp] JupyterLab extension loaded from D:\anaconda3\envs\tensorflow1\lib\site-packages\jupyterlab
[I 12:04:21.544 NotebookApp] JupyterLab application directory is D:\anaconda3\envs\tensorflow1\share\jupyter\lab
[I 12:04:21.560 NotebookApp] Serving notebooks from local directory: C:\Users\xutengfei
[I 12:04:21.560 NotebookApp] The Jupyter Notebook is running at:
[I 12:04:21.560 NotebookApp] http://localhost:8888/?token=89dddcfce90aedc8df243680d2be0e1aa2fe27d1c763803e
[I 12:04:21.560 NotebookApp] or http://127.0.0.1:8888/?token=89dddcfce90aedc8df243680d2be0e1aa2fe27d1c763803e
[I 12:04:21.560 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:04:21.688 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/xutengfei/AppData/Roaming/jupyter/runtime/nbserver-11924-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=89dddcfce90aedc8df243680d2be0e1aa2fe27d1c763803e
or http://127.0.0.1:8888/?token=89dddcfce90aedc8df243680d2be0e1aa2fe27d1c763803e