-
Notifications
You must be signed in to change notification settings - Fork 2
/
mamba_install_win10.bat
125 lines (121 loc) · 4.37 KB
/
mamba_install_win10.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
rem # -*- coding: utf-8 -*-
rem # SPDX-FileCopyrightText: 2024 Cezar M. Tigaret <cezar.tigaret@gmail.com>
rem # SPDX-License-Identifier: GPL-3.0-or-later
rem # SPDX-License-Identifier: LGPL-2.1-or-later
rem
echo This script requires mambaforge installed from https://github.com/conda-forge/miniforge#mambaforge
echo and must be run from a mamba (Microforge) prompt launched as administrator
@echo off
rem setlocal enabledelayedexpansion enableextensions
set mypath=%0
set mydir=%~dp0
rem set conda_reqs=%mydir%\install\conda_requirements_win.txt
set pip_reqs=%mydir%\install\pip_requirements_win.txt
set default_env_name="c:\scipyenv"
set /P env_name="Enter the full path name of the new environment (no spaces, please, default is: %default_env_name%): "
if [%env_name%] equ [] set env_name=%default_env_name%
echo Creating mamba environment %env_name%
call mamba create -y --prefix %env_name% python=3.11 || goto eof
echo Activating mamba environment %env_name%
call mamba activate %env_name% || goto eof
call mamba config --add channels conda-forge || goto eof
rem call mamba install --prefix %env_name% -y --file %conda_reqs%
echo
echo Installing jupyter
call mamba install --prefix %env_name% -y jupyter || goto eof
rem echo Installing jupyter_cms
rem call mamba install --prefix %env_name% -y jupyter_cms || goto eof
echo
echo Installing color schemes for jupyter qtconsole
call mamba install --prefix %env_name% -y jupyter_qtconsole_colorschemes || goto eof
echo
echo Installing jupyter themes
call mamba install --prefix %env_name% -y jupyterthemes || goto eof
echo
echo Installing numpy
call mamba install --prefix %env_name% -y numpy || goto eof
echo
echo Installing matplotlib
call mamba install --prefix %env_name% -y matplotlib || goto eof
echo
echo Installing scipy
call mamba install --prefix %env_name% -y scipy || goto eof
echo
echo Installing sympy
call mamba install --prefix %env_name% -y sympy || goto eof
echo
echo Installing h5py
call mamba install --prefix %env_name% -y h5py || goto eof
echo
echo Installing pyqtgraph
call mamba install --prefix %env_name% -y pyqtgraph || goto eof
echo
echo Installing pywavelets
call mamba install --prefix %env_name% -y PyWavelets || goto eof
echo
echo Installing pandas
call mamba install --prefix %env_name% -y pandas || goto eof
echo
echo Installing quantities
call mamba install --prefix %env_name% -y quantities || goto eof
echo
echo Installing python-neo
call mamba install --prefix %env_name% -y python-neo || goto eof
echo
echo Installing vigra
call mamba install --prefix %env_name% -y -c conda-forge vigra || goto eof
echo
echo Installing cmocean
call mamba install --prefix %env_name% -y cmocean || goto eof
echo
echo Installing confuse
call mamba install --prefix %env_name% -y confuse || goto eof
echo
echo Installing inflect
call mamba install --prefix %env_name% -y inflect || goto eof
echo
echo Installing seaborn
call mamba install --prefix %env_name% -y seaborn || goto eof
echo
echo Installing pingouin
call mamba install --prefix %env_name% -y pingouin || goto eof
echo
echo Installing qimage2ndarray
call mamba install --prefix %env_name% -y qimage2ndarray || goto eof
echo
echo Installing pyxdg
call mamba install --prefix %env_name% -y pyxdg || goto eof
REM OPTIONAL PACKAGES FROM CONDA
REM call mamba install --prefix %env_name% -y qdarkstyle
echo
echo Installing bokeh
call mamba install --prefix %env_name% -y bokeh || goto eof
echo
echo Installing scikit-image
call mamba install --prefix %env_name% -y scikit-image || goto eof
echo
echo Installing scikit-learn
call mamba install --prefix %env_name% -y scikit-learn || goto eof
echo
echo Installing dill
call mamba install --prefix %env_name% -y dill || goto eof
echo
echo Installing libNeuroML
call mamba install --prefix %env_name% -y libNeuroML || goto eof
echo
echo Installing matlab kernel
call mamba install --prefix %env_name% -y matlab_kernel || goto eof
echo
echo Installing octave kernel
call mamba install --prefix %env_name% -y octave_kernel || goto eof
echo
echo Installing PyInstaller
call mamba install --prefix %env_name% -y pyinstaller || goto eof
echo
echo Installing additional PyPI packages
call pip install -r %pip_reqs% || goto eof
powershell -ExecutionPolicy Bypass -File %mydir%\install\make_scipyen_batch_scripts.ps1 || goto eof
powershell -ExecutionPolicy Bypass -File %mydir%\install\make_link.ps1 %mydir% || goto eof
echo Scipyen can now be launched from the desktop icon
:eof
rem endlocal