简体   繁体   English

服务器 python 安装 - 本地或系统范围

[英]Server python installation - local or system wide

We have an Ubuntu server and our team is discussing whether to install a system-wide Python version with PyTorch etc or to create local installations per user (such as Conda).我们有一个 Ubuntu 服务器,我们的团队正在讨论是否安装系统范围的 Python 版本和 PyTorch 等,或者为每个用户创建本地安装(如 Conda 等)。 One of the problems is HDD space given to each user, as many local installations with all the dependencies might take some space.问题之一是分配给每个用户的 HDD 空间,因为具有所有依赖项的许多本地安装可能会占用一些空间。

Did you have similar dilemmas in your cases?你的案例中是否有类似的困境? Any opinions on this?对此有何看法?

The Conda package cache location ( pkgs_dirs ) can be shared across users while still maintaining separate user-specific envs ( envs_dirs ). Conda package 缓存位置 ( pkgs_dirs ) 可以在用户之间共享,同时仍保持单独的用户特定环境 ( envs_dirs )。 As long as the package cache and environment locations are on the same physical disk, then Conda will use hardlinks to minimize redundancy.只要 package 缓存和环境位置在同一个物理磁盘上,那么 Conda 就会使用硬链接来最小化冗余。 See conda config --describe pkgs_dirs .请参阅conda config --describe pkgs_dirs

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

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