Conda/Mamba tips and tricks: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
({{Status}}/{{TOC}} 템플릿 제거)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Overview ==


== Downgrading Conda Version ==
Conda/Mamba tips and tricks에 대한 기술 문서입니다.
 
=== Summary ===
 
* 무엇인가? - Conda/Mamba tips and tricks
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
 
== Purpose ==
 
이 문서가 존재하는 이유
 
* Goal: Conda/Mamba tips and tricks에 대한 기술 정보 제공
* Scope: Conda/Mamba tips and tricks의 개념, 사용법, 설정
* Non-goals: 다른 주제로의 확장
 
== Key Concepts ==
 
{| class="wikitable"
! Concept
! Description
! Related
|-
| Conda/Mamba tips and tricks
| HPC/서버 환경에서 중요한 기술 개념
| [[Linux]], [[Server]]
|}
 
== Detailed Explanation ==
 
<syntaxhighlight lang="bash">
# Search available package inside conda env
$conda search <package_name>    # this command shows all avalable version of package
</syntaxhighlight>
<syntaxhighlight lang="bash">
# prioritize 'conda-forge' channel
conda config --add channels conda-forge
# update existing packages to use 'conda-forge' channel
conda update -n base --all
# install 'mamba'
conda install -n base mamba
</syntaxhighlight>
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
conda config --set allow_conda_downgrades true
$conda install anaconda   # this command may take over an hour
conda install conda=a.b.c   # version you want to install
# after then
$conda update --all     
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang="bash">
$ source activate base
$ conda deactivate
== Best Practices ==


== Speedup Conda ==
* 최신 버전 사용 권장
[https://www.anaconda.com/blog/understanding-and-improving-condas-performance This] page describes how to speed up conda operation
* 공식 문서 참고
* 테스트 환경에서 먼저 검증


some examples are,
== References ==


conda config --add channels bioconda
* [https://wiki.hpcmate.com Conda/Mamba tips and tricks]


conda config --set channel_priority strict
== Related Pages ==


conda config --set safety_checks disabled
* [[Linux]]
* [[Server]]
* [[Hardware]]
* [[Network]]


== Conda commands ==
[[Category:Server]]
{| class="wikitable sortable"
== Knowledge Graph ==
|+
 
!Commands
Related
!Description
!Options
!Notes
|-
|conda update conda
|update the conda package manager to the latest version
|
|
|-
|conda update anaconda
|use conda to update Anaconda to the latest version
|
|
|-
|conda install anaconda=VERSION-NUMBER
|use conda to install a specific version of Anaconda
|
|
|-
|<code>conda config --add channels conda-forge</code>
|Add conda channel
|
|Update channels section of ~/.condarc file
|-
|<code>conda config --set channel_priority strict</code>
|Set channel priority policy
|
|
|-
|<code>conda config --show-sources</code>
|Show config status
|
|
|-
|<code>conda update --all --verbose</code>
|Update all conda with printout
|
|
|-
|<code>conda list --show-channel-urls</code>
|Listup conda channels
|
|
|-
|<code>conda search -f python</code>
|search available python version
|<code>Search can be extened with channels</code><code>$ cat ~/.condarc</code><code>channels:</code><code>- conda-forge</code><code>- bioconda</code><code>- defaults</code>
|Conda only has [[support]] for Python 3.8+ on the '''osx-arm64'''<ref>https://stackoverflow.com/questions/73052910/no-python-3-6-available-in-conda-search-f-python</ref>
To ''search'' alternative platforms, can use the <code>--subdir, --platform</code> argument to specify,


<code>$conda search --subdir osx-64 python=3.6</code>
→ [[Linux]]
or set the <code>subdir</code> configuration temporarily through the <code>CONDA_SUBDIR</code> environment variable:
→ [[Server]]
<code>CONDA_SUBDIR=osx-64 conda search python=3.6</code>
→ [[Hardware]]
|}
→ [[Network]]


== Reference ==
[[Category:Reference]]
<references />
[[Category: Terminology]]
[[Category: Tips_Trick]]

Latest revision as of 13:22, 2 October 2026

Overview

Conda/Mamba tips and tricks에 대한 기술 문서입니다.

Summary

  • 무엇인가? - Conda/Mamba tips and tricks
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시

Purpose

이 문서가 존재하는 이유

  • Goal: Conda/Mamba tips and tricks에 대한 기술 정보 제공
  • Scope: Conda/Mamba tips and tricks의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장

Key Concepts

Concept Description Related
Conda/Mamba tips and tricks HPC/서버 환경에서 중요한 기술 개념 Linux, Server

Detailed Explanation

# Search available package inside conda env
$conda search <package_name>    # this command shows all avalable version of package
# prioritize 'conda-forge' channel
conda config --add channels conda-forge
# update existing packages to use 'conda-forge' channel
conda update -n base --all
# install 'mamba'
conda install -n base mamba
$conda install anaconda   # this command may take over an hour
# after then
$conda update --all

<syntaxhighlight lang="bash"> $ source activate base $ conda deactivate

Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증

References

Related Pages

Knowledge Graph

Related

→ Linux → Server → Hardware → Network