Closed muse1171 closed 11 months ago
Error executing Jupyter command 'lab': [Errno 2] No such file or directory
从这个提示看,Jupyter Lab 应该是没装好。
baojuan@baojuandeMacBook-Pro ~ % jupyter --version
jupyter core : 4.6.3
jupyter-notebook : 6.1.3
qtconsole : 4.7.7
ipython : 7.18.1
ipykernel : 5.3.4
jupyter client : 6.1.7
jupyter lab : 2.2.6
nbconvert : 5.6.1
ipywidgets : 7.5.1
nbformat : 5.0.7
traitlets : 5.0.4
baojuan@baojuandeMacBook-Pro ~ % jupyter lab
Error executing Jupyter command 'lab': [Errno 2] No such file or directory
baojuan@baojuandeMacBook-Pro ~ % jupyterlab
zsh: command not found: jupyterlab
baojuan@baojuandeMacBook-Pro ~ %
咋办呀?
baojuan@baojuandeMacBook-Pro ~ % jupyter lab
Error executing Jupyter command 'lab': [Errno 2] No such file or directory
baojuan@baojuandeMacBook-Pro ~ % which python3
/usr/local/bin/python3
baojuan@baojuandeMacBook-Pro ~ % which python
/usr/local/bin/python
baojuan@baojuandeMacBook-Pro ~ % pip3 show jupyter
WARNING: Package(s) not found: jupyter
baojuan@baojuandeMacBook-Pro ~ % brew install jupyter
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/zeromq-4.3.2.catalina.bottl
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/c1b7ef404ebaf2a6dbfbe
==> Downloading https://homebrew.bintray.com/bottles/ipython-7.18.1.catalina.bot
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/02a8edee16108cef627e7
==> Downloading https://homebrew.bintray.com/bottles/pandoc-2.10.1.catalina.bott
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/720d055d2bdafbe818f50
==> Downloading https://homebrew.bintray.com/bottles/jupyterlab-2.2.7.catalina.b
==> Installing dependencies for jupyterlab: zeromq, ipython and pandoc
==> Installing jupyterlab dependency: zeromq
==> Pouring zeromq-4.3.2.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/zeromq/4.3.2: 80 files, 3.5MB
==> Installing jupyterlab dependency: ipython
==> Pouring ipython-7.18.1.catalina.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/ipython
Target /usr/local/bin/ipython
already exists. You may want to remove it:
rm '/usr/local/bin/ipython'
To force the link and overwrite all conflicting files:
brew link --overwrite ipython
To list all files that would be deleted:
brew link --overwrite --dry-run ipython
Possible conflicting files are:
/usr/local/bin/ipython
/usr/local/share/jupyter/kernels/python3/kernel.json
/usr/local/share/jupyter/kernels/python3/logo-32x32.png
/usr/local/share/jupyter/kernels/python3/logo-64x64.png
==> Summary
🍺 /usr/local/Cellar/ipython/7.18.1: 3,010 files, 19.6MB
==> Installing jupyterlab dependency: pandoc
==> Pouring pandoc-2.10.1.catalina.bottle.1.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/pandoc/2.10.1: 10 files, 136.1MB
==> Installing jupyterlab
==> Pouring jupyterlab-2.2.7.catalina.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/jlpm
Target /usr/local/bin/jlpm
already exists. You may want to remove it:
rm '/usr/local/bin/jlpm'
To force the link and overwrite all conflicting files:
brew link --overwrite jupyterlab
To list all files that would be deleted:
brew link --overwrite --dry-run jupyterlab
Possible conflicting files are:
/usr/local/bin/jlpm
/usr/local/bin/jupyter
/usr/local/bin/jupyter-bundlerextension
/usr/local/bin/jupyter-console
/usr/local/bin/jupyter-kernel
/usr/local/bin/jupyter-kernelspec
/usr/local/bin/jupyter-lab
/usr/local/bin/jupyter-labextension
/usr/local/bin/jupyter-migrate
/usr/local/bin/jupyter-nbconvert
/usr/local/bin/jupyter-nbextension
/usr/local/bin/jupyter-notebook
/usr/local/bin/jupyter-run
/usr/local/bin/jupyter-serverextension
/usr/local/bin/jupyter-troubleshoot
/usr/local/bin/jupyter-trust
==> Caveats
Additional kernels can be installed into the shared jupyter directory
/usr/local/etc/jupyter
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/jupyterlab/2.2.7: 6,271 files, 100.3MB
==> Caveats
==> pandoc
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> jupyterlab
Additional kernels can be installed into the shared jupyter directory
/usr/local/etc/jupyter
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
为什么你要用 Homebrew 来安装 Jupyter Lab?环境配置指南里是咋写的看清了么?
google来的,病急乱投医。之前jupyter都是好好的,进行MySQL 环境准备操作后,出去度假一周后回来,jupyterlab、nteract都打不开了。
Last login: Thu Sep 17 21:15:02 on ttys000
baojuan@baojuandeMacBook-Pro ~ % Software Update
zsh: command not found: Software
baojuan@baojuandeMacBook-Pro ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 22 (delta 13), reused 8 (delta 8), pack-reused 4
展开对象中: 100% (22/22), 11.97 KiB | 19.00 KiB/s, 完成.
来自 https://github.com/Homebrew/brew
* [新分支] dependabot/bundler/Library/Homebrew/rubocop-ast-0.4.1 -> origin/dependabot/bundler/Library/Homebrew/rubocop-ast-0.4.1
* [新分支] dependabot/bundler/Library/Homebrew/sorbet-0.5.5912 -> origin/dependabot/bundler/Library/Homebrew/sorbet-0.5.5912
* [新分支] dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5912 -> origin/dependabot/bundler/Library/Homebrew/sorbet-runtime-0.5.5912
* [新分支] imgbot -> origin/imgbot
HEAD 现在位于 67b241907 Merge pull request #8748 from Homebrew/tapioca-update
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': transfer closed with outstanding read data remaining
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
Failed during: /usr/local/bin/brew update --force
baojuan@baojuandeMacBook-Pro ~ % brew update-reset
==> Fetching /usr/local/Homebrew...
==> Resetting /usr/local/Homebrew...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to and reset branch 'master'
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': transfer closed with outstanding read data remaining
==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.
==> Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
==> Resetting /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services...
Branch 'master' set up to track remote branch 'master' from 'origin'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.
baojuan@baojuandeMacBook-Pro ~ % brew list
gdbm icu4c node pcre2 sqlite
gettext ipython openssl@1.1 python@3.8 xz
git mysql@5.7 pandoc readline zeromq
baojuan@baojuandeMacBook-Pro ~ % python3 -V
Python 3.7.3
baojuan@baojuandeMacBook-Pro ~ % rm /usr/local/bin/python
baojuan@baojuandeMacBook-Pro ~ % ln -s /usr/local/bin/python3 /usr/local/bin/python
baojuan@baojuandeMacBook-Pro ~ % python3 -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/4e/5f/528232275f6509b1fff703c9280e58951a81abe24640905de621c9f81839/pip-20.2.3-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.0.3
Uninstalling pip-19.0.3:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'RECORD'
Consider using the `--user` option or check the permissions.
You are using pip version 19.0.3, however version 20.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
baojuan@baojuandeMacBook-Pro ~ % pip install --upgrade pip
Requirement already up-to-date: pip in /usr/local/lib/python3.8/site-packages (20.2.3)
baojuan@baojuandeMacBook-Pro ~ % pip install jupyterlab
Requirement already satisfied: jupyterlab in /usr/local/lib/python3.8/site-packages (2.2.6)
Requirement already satisfied: tornado!=6.0.0,!=6.0.1,!=6.0.2 in /usr/local/lib/python3.8/site-packages (from jupyterlab) (6.0.4)
Requirement already satisfied: notebook>=4.3.1 in /usr/local/lib/python3.8/site-packages (from jupyterlab) (6.1.3)
Requirement already satisfied: jupyterlab-server<2.0,>=1.1.5 in /usr/local/lib/python3.8/site-packages (from jupyterlab) (1.2.0)
Requirement already satisfied: jinja2>=2.10 in /usr/local/lib/python3.8/site-packages (from jupyterlab) (2.11.2)
Requirement already satisfied: traitlets>=4.2.1 in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (5.0.4)
Requirement already satisfied: nbformat in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (5.0.7)
Requirement already satisfied: argon2-cffi in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (20.1.0)
Requirement already satisfied: pyzmq>=17 in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (19.0.2)
Requirement already satisfied: ipykernel in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (5.3.4)
Requirement already satisfied: Send2Trash in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (1.5.0)
Requirement already satisfied: nbconvert in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (5.6.1)
Requirement already satisfied: prometheus-client in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (0.8.0)
Requirement already satisfied: terminado>=0.8.3 in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (0.8.3)
Requirement already satisfied: ipython-genutils in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (0.2.0)
Requirement already satisfied: jupyter-core>=4.6.1 in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (4.6.3)
Requirement already satisfied: jupyter-client>=5.3.4 in /usr/local/lib/python3.8/site-packages (from notebook>=4.3.1->jupyterlab) (6.1.7)
Requirement already satisfied: jsonschema>=3.0.1 in /usr/local/lib/python3.8/site-packages (from jupyterlab-server<2.0,>=1.1.5->jupyterlab) (3.2.0)
Requirement already satisfied: requests in /usr/local/lib/python3.8/site-packages (from jupyterlab-server<2.0,>=1.1.5->jupyterlab) (2.24.0)
Requirement already satisfied: json5 in /usr/local/lib/python3.8/site-packages (from jupyterlab-server<2.0,>=1.1.5->jupyterlab) (0.9.5)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.8/site-packages (from jinja2>=2.10->jupyterlab) (1.1.1)
Requirement already satisfied: cffi>=1.0.0 in /usr/local/lib/python3.8/site-packages (from argon2-cffi->notebook>=4.3.1->jupyterlab) (1.14.2)
Requirement already satisfied: six in /usr/local/lib/python3.8/site-packages (from argon2-cffi->notebook>=4.3.1->jupyterlab) (1.15.0)
Requirement already satisfied: appnope; platform_system == "Darwin" in /usr/local/lib/python3.8/site-packages (from ipykernel->notebook>=4.3.1->jupyterlab) (0.1.0)
Requirement already satisfied: ipython>=5.0.0 in /usr/local/lib/python3.8/site-packages (from ipykernel->notebook>=4.3.1->jupyterlab) (7.18.1)
Requirement already satisfied: pandocfilters>=1.4.1 in /usr/local/lib/python3.8/site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (1.4.2)
Requirement already satisfied: pygments in /usr/local/lib/python3.8/site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (2.6.1)
Requirement already satisfied: testpath in /usr/local/lib/python3.8/site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.4.4)
Requirement already satisfied: entrypoints>=0.2.2 in /usr/local/lib/python3.8/site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.3)
Requirement already satisfied: defusedxml in /usr/local/lib/python3.8/site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.6.0)
Requirement already satisfied: bleach in /usr/local/lib/python3.8/site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (3.1.5)
Requirement already satisfied: mistune<2,>=0.8.1 in /usr/local/lib/python3.8/site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.8.4)
Requirement already satisfied: ptyprocess; os_name != "nt" in /usr/local/lib/python3.8/site-packages (from terminado>=0.8.3->notebook>=4.3.1->jupyterlab) (0.6.0)
Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.8/site-packages (from jupyter-client>=5.3.4->notebook>=4.3.1->jupyterlab) (2.8.1)
Requirement already satisfied: pyrsistent>=0.14.0 in /usr/local/lib/python3.8/site-packages (from jsonschema>=3.0.1->jupyterlab-server<2.0,>=1.1.5->jupyterlab) (0.16.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/local/lib/python3.8/site-packages (from jsonschema>=3.0.1->jupyterlab-server<2.0,>=1.1.5->jupyterlab) (20.2.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.8/site-packages (from jsonschema>=3.0.1->jupyterlab-server<2.0,>=1.1.5->jupyterlab) (49.2.0)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.8/site-packages (from requests->jupyterlab-server<2.0,>=1.1.5->jupyterlab) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/site-packages (from requests->jupyterlab-server<2.0,>=1.1.5->jupyterlab) (2020.6.20)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.8/site-packages (from requests->jupyterlab-server<2.0,>=1.1.5->jupyterlab) (1.25.10)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.8/site-packages (from requests->jupyterlab-server<2.0,>=1.1.5->jupyterlab) (2.10)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/site-packages (from cffi>=1.0.0->argon2-cffi->notebook>=4.3.1->jupyterlab) (2.20)
Requirement already satisfied: pickleshare in /usr/local/lib/python3.8/site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.7.5)
Requirement already satisfied: decorator in /usr/local/lib/python3.8/site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (4.4.2)
Requirement already satisfied: backcall in /usr/local/lib/python3.8/site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.2.0)
Requirement already satisfied: jedi>=0.10 in /usr/local/lib/python3.8/site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.17.2)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /usr/local/lib/python3.8/site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (3.0.7)
Requirement already satisfied: pexpect>4.3; sys_platform != "win32" in /usr/local/lib/python3.8/site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (4.8.0)
Requirement already satisfied: webencodings in /usr/local/lib/python3.8/site-packages (from bleach->nbconvert->notebook>=4.3.1->jupyterlab) (0.5.1)
Requirement already satisfied: packaging in /usr/local/lib/python3.8/site-packages (from bleach->nbconvert->notebook>=4.3.1->jupyterlab) (20.4)
Requirement already satisfied: parso<0.8.0,>=0.7.0 in /usr/local/lib/python3.8/site-packages (from jedi>=0.10->ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.7.1)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.8/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.2.5)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.8/site-packages (from packaging->bleach->nbconvert->notebook>=4.3.1->jupyterlab) (2.4.7)
baojuan@baojuandeMacBook-Pro ~ % jupyter lab
Error executing Jupyter command 'lab': [Errno 2] No such file or directory
baojuan@baojuandeMacBook-Pro ~ % cd C:\Users\username\Code\my-student-book
cd: no such file or directory: C:UsersusernameCodemy-student-book
baojuan@baojuandeMacBook-Pro ~ % ls
Applications
Code
Desktop
Documents
Downloads
Library
MarkEditor
MarkEditorQuickNote
Movies
Music
Pictures
Public
garfield
hello.py
learn-git
the-science-of-well-being-syllabus-parsed.json
baojuan@baojuandeMacBook-Pro ~ % cd learn-git
baojuan@baojuandeMacBook-Pro learn-git % ls
fifa19.csv today.py 未命名1.ipynb
garfield.ipynb xxx.py 未命名2.ipynb
garfield.py 未命名.ipynb
baojuan@baojuandeMacBook-Pro learn-git % jupyter lab
Error executing Jupyter command 'lab': [Errno 2] No such file or directory
baojuan@baojuandeMacBook-Pro learn-git % cd ..
baojuan@baojuandeMacBook-Pro ~ % ls
Applications
Code
Desktop
Documents
Downloads
Library
MarkEditor
MarkEditorQuickNote
Movies
Music
Pictures
Public
garfield
hello.py
learn-git
the-science-of-well-being-syllabus-parsed.json
baojuan@baojuandeMacBook-Pro ~ % cd Downloads
baojuan@baojuandeMacBook-Pro Downloads % ls
094212knzihjuhv1fhvibh (1).apk
094212knzihjuhv1fhvibh.apk
1590404240528.ipynb
1590404279182.ipynb
1590404324667.ipynb
1590404392194.ipynb
1594898753076.ipynb
1594902579705.ipynb
73041_220332_bundle_archive.zip
73041_220332_compressed_data.csv.zip
BaiduNetdisk_mac_3.0.6.2.dmg
Crown.conf
Herbert-James-Draper-Ulysses-and-the-Sirens.jpg
Principles Life and Work by Ray Dalio (z-lib.org).epub
PyScripter
Surge-latest.zip
Surge.app
Unfuk Yourself Get Out of YourHead and into Your Life by Gary John Bishop (z-lib.org).epub
Unfuk Yourself Get Out of YourHead and into Your Life by Gary John Bishop (z-lib.org).epub.mobi
VSCode-darwin-stable.zip
Visual Studio Code.app
assets 21.34.31
fifa19.csv
install_flash_player_osx.dmg
leica-d-lux5e-d-lux-5.pdf
longwe_1.0.1.dmg
markeditor_2.1.8.5.dmg
mysql-workbench-community-8.0.21-macos-x86_64.dmg
nteract-0.22.4.dmg
progit.pdf
studentbook
studentbook (4)
studentbook (4).zip
the-science-of-well-being
think Python
电子书
大西北游2020-9
全网最热Python3入门+进阶 更快上手实际开发
坤叔私房课-phase1
坤叔私房课-phase2(1).zip
baojuan@baojuandeMacBook-Pro Downloads % cd studentbook
baojuan@baojuandeMacBook-Pro studentbook % jupyter lab
Error executing Jupyter command 'lab': [Errno 2] No such file or directory
baojuan@baojuandeMacBook-Pro studentbook % pip3 install ipython[notebook]
zsh: no matches found: ipython[notebook]
baojuan@baojuandeMacBook-Pro studentbook % pip install ipython[notebook]
zsh: no matches found: ipython[notebook]
baojuan@baojuandeMacBook-Pro studentbook %
老师启动Jupyter lab时报错,如附图所示,是因为Python安装有问题吗?
nteract运行不了,launching的状态,不知道到底咋回事。命令行运行jupyterlab也打不开