Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How jupyterhub installs dependent libraries using conda, pip, or apt

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how jupyterhub uses conda, pip or apt to install dependent libraries, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.

In TLJH, all users use the same conda environment, users can call all the software packages in the environment, and administrators can install the required software environment for users in a variety of ways.

Install dependency packages through pip

The pip tool is used to download installation dependencies from Python Packaging Index (PyPI), and there are more than 145000 software packages in PyPI.

1. Log in to JupyterHub with administrator privileges and open a command line window

2. Enter the installation command sudo-E pip install

Replace the angle brackets in the command as needed, taking installing numpy as an example:

Install dependency packages through conda

Conda can install packages from other languages, such as node,R, etc., especially when dependent packages need to be linked to C/Fortran code, it is recommended to use conda instead of pip installation

1. Log in to JupyterHub with administrator privileges and open a command line window 2. Enter the installation command sudo-E conda install-c conda-forge

Replace the angle brackets in the command as needed, taking installing gdal as an example:

Install dependency packages through apt

Apt is the official package manager for Ubuntu Linux distributions. It can install utilities (such as vim, sl, htop, etc.), server applications (postgres, mysql, nginx, etc.), support more languages than conda (haskell, prolog, INTERCAL), and some third-party software (such as RStudio). Apt supports offline installation using .deb files.

1. Log in to JupyterHub with administrator privileges and open a command line window 2. Update the list of available packages, make sure to get the latest version of sudo apt update3, and enter the installation command sudo apt install

Take installing git as an example:

Thank you for reading this article carefully. I hope the article "how jupyterhub uses conda, pip or apt to install dependency libraries" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report