I have a Linux machine that cannot access the internet and I need to install the Jupyter notebook on it, without root privileges. I can copy whatever files to my machine and them copy those files to the remote machine. How can I get all dependencies and install them, without using Anaconda, for example? Pip is ok.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
If anyone still gets the following error:
(To add to Ayush's answer)
It is important to run the relocatable command AFTER the jupyter installation.
Hope this helps.
warning: this answer might fail in future due to a possible deprecation in
--relocatable
option in virtualenvidea: create a relocatable virtualenv in another computer, install jupyter in there, and tar and move it to the said linux machine, untar it, and profit
Nb. To install virtualenv, run
pip install virtualenv
step 1: create a virtualenv
step 2: activate .venv
step 3: install jupyter
step 4: mark .venv as relocatable
step 5: tar the .venv directory
step 6: move to offline linux machine, and untar
step 7: activate virtualenv to use it
You can use another Linux machine with internet access to create an installation file and then move it to your machine and install it.
tar.gz
file of jupyter's installation files:Move the created
jupyter.tar.gz
file to your machine using external hard drive.On your machine install the
jupyter.tar.gz
file:** If you wanna use Jupyterlab instead Jupyter-notebook replace this two lines:
a. replace
pip download jupyter
withpip download jupyterlab
.b. replace
jupyter notebook --ip 0.0.0.0 --port 9999 --allow-root
withjupyter lab --ip 0.0.0.0 --port 9999 --allow-root
.