windows11にanacondaを淹れてみる

anaconda/mini{conda|forge}をwindows11で使ってみる. 簡単にはanacondaなんでしょうけど、ライセンス関係でmini{conda/forge}って場合も.
https://www.anaconda.com/downloadから入手可能ですが、メール登録が求められる。登録をスキップしてインスラーのみを取得
「Distribution Installers」と「Miniconda Installers」の2つが見えるが、前者がanaconda。
取得したファイルは「Anaconda3-2024.10-1-Windows-x86_64.exe」(973,336kB)
インストール先は「C:\Users\supervisor\anaconda3」でオプションはこんな感じ
2025y05m18d_134017297.png

っでlinuxのようにコマンドラインで「conda create ...」をしたいので環境変数を定義します
windowsの環境変数設定の画面を出して
 HOME --> C:\Users\<そのユーザ>
とHOMEを新規に定義して、PATH環境変数を追加登録します
 PATH --> %HOME%\anaconda3;%HOME%\anaconda3\Library\mingw-w64\bin;%HOME%\anaconda3\Library\usr\bin;%HOME%\anaconda3\Library\bin;%HOME%\anaconda3\bin
2025y05m18d_145625549.png 2025y05m18d_142952657.png

そうして新しくコマンドプロンプトを立ち上げると

C:\Users\supervisor>conda env list
 
# conda environments:
#
base                   C:\Users\supervisor\anaconda3
 
 
C:\Users\supervisor>

となります。

コンパイル環境の整備

「Microsoft C++ Build Tools」をインストールします. VisualStudioは不要です.
https://visualstudio.microsoft.com/ja/visual-cpp-build-tools/にアクセスしてインストーラーを取得します
2025y05m18d_153310011.png
「vs_BuildTools.exe」(4,355kB)を開き、暫くすると「インストール中 --Visual Studio Build Tools 2022 -- 17.14.0」の画面が表示されますが、ここでは
「ワークロード」タグの「C++によるディスクトップ開発」にしるしをつけて
2025y05m18d_154543382.png
「個別のコンポーネント」タグにて右チェックボックス欄から「ツールのコア機能のテスト」「C++AddressSantizer」「vckgパッケージマネージャ」を外しています(デバッグするつもりがないので)
っで画面右下の「インストール」を押下するとインストールが開始されます
2025y05m18d_154912283.png 2025y05m18d_155216460.png

cooltools実行環境

コマンドプロンプトで「conda create -n HiC python=3.10」として「conda activate HiC」に移り「pip install cooltools」実行したが途中でエラーが発生

C:\Users\supervisor>conda create -n HiC python=3.10
 :
C:\Users\supervisor>conda activate HiC
(HiC) C:\Users\supervisor>pip install cooltools
 :
Building wheels for collected packages: cooltools, asciitree
  Building wheel for cooltools (pyproject.toml) ... error
  error: subprocess-exited-with-error
 
  × Building wheel for cooltools (pyproject.toml) did not run successfully.
  │ exit code: 1
  &#9584;─> [59 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-310\cooltools
 :
      running build_ext
      building 'cooltools.lib._numutils' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cooltools
  DEPRECATION: Building 'asciitree' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'asciitree'. Discussion can be found at https://github.com/pypa/pip/issues/6334
  Building wheel for asciitree (setup.py) ... done

文中にあるように「Microsoft C++ Build Tools」を入れてみる. windowsのアプリケーション開発環境Visual Studioはいらないが、単にコンパイル環境の実が欲しい

最新の60件
2025-06-18 2025-06-17 2025-06-15 2025-06-14 2025-06-11 2025-06-09 2025-06-08 2025-06-07 2025-06-05 2025-06-02 2025-06-01 2025-05-31 2025-05-30 2025-05-25 2025-05-22 2025-05-21 2025-05-20 2025-05-18 2025-05-17 2025-05-14 2025-05-13 2025-05-12 2025-05-11 2025-05-08 2025-05-07 2025-05-06 2025-05-05 2025-05-04 2025-05-03 2025-04-27 2025-04-26 2025-04-25 2025-04-24

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2025-05-18 (日) 15:53:18