简体   繁体   English

在没有pip的情况下离线安装jupyter notebook

[英]Install jupyter notebook offline without pip

I need to install jupyter notebook in my computer without internet network.我需要在没有互联网的情况下在我的计算机上安装 jupyter notebook。

I cannot install with anaconda with security problem.我无法安装有安全问题的 anaconda。

I can use pip only with .whl files because I don't have any internet access with this computer.我只能将 pip 与 .whl 文件一起使用,因为这台计算机无法访问互联网。

I've downloaded notebook-master.zip file from https://github.com/jupyter/notebook我已经从https://github.com/jupyter/notebook下载了 notebook-master.zip 文件

But I still cannot install jupyter notebook with this zip file.但是我仍然无法使用这个 zip 文件安装 jupyter notebook。

Please help me install jupyter notebook.请帮我安装 jupyter notebook。

Thx谢谢

Extract zip file and run this command :解压 zip 文件并运行以下命令:

python setup.py install --single-version-externally-managed --root=/

Or you can use this command或者你可以使用这个命令

pip install .

Pip has a download option. Pip 有一个下载选项。 Not only for wheels, for everything that's pip installable.不仅适用于轮子,也适用于所有 pip 可安装的东西。

Go into an empty folder on a computer that has the same operating system as your offline computer and the same version of python进入与您的离线计算机具有相同操作系统和相同版本 python 的计算机上的一个空文件夹

Then download all required libraries (do not forget pip itself), like然后下载所有需要的库(不要忘记 pip 本身),比如

pip download pip
pip download jupyter
pip download jupyterlab
pip download pandas
pip download requests
...

move the folder content to a directory on the offline computer将文件夹内容移动到脱机计算机上的目录

pip install pip -U --no-index --find-links . 
pip install jupyter --no-index --find-links . 
pip install jupyterlab -U --no-index --find-links . 
...

If you get an error, because you forgot a library, download it, move it and continue.如果您因为忘记了库而出现错误,请下载、移动并继续。

And if you're on windows, you may need to download some libraries from this collection if those fail to install.如果您使用的是 Windows,如果安装失败,您可能需要从该集合中下载一些库。

This will allow you to get a working jupyter installation with everything that's installable via pip.这将允许您使用可通过 pip 安装的所有内容获得有效的 jupyter 安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM