neolee / pilot

进入编程世界的第一课
584 stars 840 forks source link

安装 Jupyter Lab 失败 #1425

Open richardzhaogrit opened 3 years ago

richardzhaogrit commented 3 years ago

安装Jupyter lab 失败,试了pip 和pip3 都不行,出现以下报错。请问老师如何处理

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. Richards-Air:~ Richardz$ python -m pip install --upgrade pip /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip Richards-Air:~ Richardz$ pip install jupyterlab -bash: pip: command not found Richards-Air:~ Richardz$ python -m pip install --upgrade pip /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip Richards-Air:~ Richardz$ python -m pip install --upgrade pip33 /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip Richards-Air:~ Richardz$ python -m pip3 install --upgrade pip3 /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named pip3 Richards-Air:~ Richardz$

neolee commented 3 years ago

尝试下国内的镜像:

https://mirrors.tuna.tsinghua.edu.cn/help/pypi/

richardzhaogrit commented 3 years ago

感谢老师回复,抱歉,新手小白,一直想学好电脑。昨天看了老师回复,自己又看了别的同学的答复,又试了下,最后找不到 jupyterlab, 不知哪里出了问题,烦请老师指导;

usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin Richards-Air:pilot-student Richardz$ pip3 install jupyterlab WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: jupyterlab in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (3.0.5) Requirement already satisfied: jupyterlab-server~=2.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (2.1.2) Requirement already satisfied: jupyter-core in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (4.7.0) Requirement already satisfied: jupyter-server~=1.2 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (1.2.2) Requirement already satisfied: nbclassic~=0.2 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (0.2.6) Requirement already satisfied: packaging in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (20.8) Requirement already satisfied: jinja2>=2.10 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (2.11.2) Requirement already satisfied: ipython in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (7.19.0) Requirement already satisfied: tornado>=6.1.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab) (6.1) Requirement already satisfied: MarkupSafe>=0.23 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jinja2>=2.10->jupyterlab) (1.1.1) Requirement already satisfied: pyzmq>=17 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (21.0.1) Requirement already satisfied: jupyter-client>=6.1.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (6.1.11) Requirement already satisfied: nbconvert in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (6.0.7) Requirement already satisfied: terminado>=0.8.3 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (0.9.2) Requirement already satisfied: anyio>=2.0.2 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (2.0.2) Requirement already satisfied: ipython-genutils in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (0.2.0) Requirement already satisfied: nbformat in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (5.1.2) Requirement already satisfied: Send2Trash in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (1.5.0) Requirement already satisfied: prometheus-client in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (0.9.0) Requirement already satisfied: traitlets>=4.2.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-server~=1.2->jupyterlab) (5.0.5) Requirement already satisfied: sniffio>=1.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from anyio>=2.0.2->jupyter-server~=1.2->jupyterlab) (1.2.0) Requirement already satisfied: idna>=2.8 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from anyio>=2.0.2->jupyter-server~=1.2->jupyterlab) (2.10) Requirement already satisfied: python-dateutil>=2.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyter-client>=6.1.1->jupyter-server~=1.2->jupyterlab) (2.8.1) Requirement already satisfied: json5 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab-server~=2.0->jupyterlab) (0.9.5) Requirement already satisfied: babel in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab-server~=2.0->jupyterlab) (2.9.0) Requirement already satisfied: requests in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab-server~=2.0->jupyterlab) (2.25.1) Requirement already satisfied: jsonschema>=3.0.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jupyterlab-server~=2.0->jupyterlab) (3.2.0) Requirement already satisfied: six>=1.11.0 in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (from jsonschema>=3.0.1->jupyterlab-server~=2.0->jupyterlab) (1.15.0) Requirement already satisfied: attrs>=17.4.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jsonschema>=3.0.1->jupyterlab-server~=2.0->jupyterlab) (20.3.0) Requirement already satisfied: setuptools in /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (from jsonschema>=3.0.1->jupyterlab-server~=2.0->jupyterlab) (41.2.0) Requirement already satisfied: pyrsistent>=0.14.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jsonschema>=3.0.1->jupyterlab-server~=2.0->jupyterlab) (0.17.3) Requirement already satisfied: notebook<7 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbclassic~=0.2->jupyterlab) (6.2.0) Requirement already satisfied: ipykernel in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from notebook<7->nbclassic~=0.2->jupyterlab) (5.4.3) Requirement already satisfied: argon2-cffi in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from notebook<7->nbclassic~=0.2->jupyterlab) (20.1.0) Requirement already satisfied: ptyprocess in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from terminado>=0.8.3->jupyter-server~=1.2->jupyterlab) (0.7.0) Requirement already satisfied: cffi>=1.0.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from argon2-cffi->notebook<7->nbclassic~=0.2->jupyterlab) (1.14.4) Requirement already satisfied: pycparser in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from cffi>=1.0.0->argon2-cffi->notebook<7->nbclassic~=0.2->jupyterlab) (2.20) Requirement already satisfied: pytz>=2015.7 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from babel->jupyterlab-server~=2.0->jupyterlab) (2020.5) Requirement already satisfied: appnope in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipykernel->notebook<7->nbclassic~=0.2->jupyterlab) (0.1.2) Requirement already satisfied: decorator in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipython->jupyterlab) (4.4.2) Requirement already satisfied: jedi>=0.10 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipython->jupyterlab) (0.18.0) Requirement already satisfied: pickleshare in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipython->jupyterlab) (0.7.5) Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipython->jupyterlab) (3.0.10) Requirement already satisfied: pygments in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipython->jupyterlab) (2.7.4) Requirement already satisfied: pexpect>4.3 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipython->jupyterlab) (4.8.0) Requirement already satisfied: backcall in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from ipython->jupyterlab) (0.2.0) Requirement already satisfied: parso<0.9.0,>=0.8.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from jedi>=0.10->ipython->jupyterlab) (0.8.1) Requirement already satisfied: wcwidth in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython->jupyterlab) (0.2.5) Requirement already satisfied: jupyterlab-pygments in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (0.1.2) Requirement already satisfied: pandocfilters>=1.4.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (1.4.3) Requirement already satisfied: nbclient<0.6.0,>=0.5.0 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (0.5.1) Requirement already satisfied: entrypoints>=0.2.2 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (0.3) Requirement already satisfied: bleach in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (3.2.1) Requirement already satisfied: testpath in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (0.4.4) Requirement already satisfied: defusedxml in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (0.6.0) Requirement already satisfied: mistune<2,>=0.8.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbconvert->jupyter-server~=1.2->jupyterlab) (0.8.4) Requirement already satisfied: nest-asyncio in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->jupyter-server~=1.2->jupyterlab) (1.4.3) Requirement already satisfied: async-generator in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->jupyter-server~=1.2->jupyterlab) (1.10) Requirement already satisfied: webencodings in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from bleach->nbconvert->jupyter-server~=1.2->jupyterlab) (0.5.1) Requirement already satisfied: pyparsing>=2.0.2 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from packaging->jupyterlab) (2.4.7) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from requests->jupyterlab-server~=2.0->jupyterlab) (1.26.2) Requirement already satisfied: certifi>=2017.4.17 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from requests->jupyterlab-server~=2.0->jupyterlab) (2020.12.5) Requirement already satisfied: chardet<5,>=3.0.2 in /Users/Richardz/Library/Python/3.8/lib/python/site-packages (from requests->jupyterlab-server~=2.0->jupyterlab) (4.0.0) Richards-Air:pilot-student Richardz$ brew install node -bash: brew: command not found Richards-Air:pilot-student Richardz$ jupyterlab -bash: jupyterlab: command not found Richards-Air:pilot-student Richardz$ jupyter lab -bash: jupyter: command not found Richards-Air:pilot-student Richardz$ jupyterlab -bash: jupyterlab: command not found Richards-Air:pilot-student Richardz$ jupyter lab -bash: jupyter: command not found Richards-Air:pilot-student Richardz$

bin0630 commented 2 years ago

开了网络代理吗?我自己是pip可以的,关掉网络代理就可以了。