MikeGreen2710 commited on
Commit
d7fbddb
·
verified ·
1 Parent(s): 908ee86

Add dedup_env.sh

Browse files
Files changed (1) hide show
  1. dedup_env.sh +49 -0
dedup_env.sh ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Creates the avm_dedup conda environment and registers it as a Jupyter kernel.
3
+ # Run with: bash create_env.sh
4
+ set -euo pipefail
5
+
6
+ ENV_NAME="avm_dedup"
7
+ PYTHON_VERSION="3.12"
8
+
9
+ echo "======================================================"
10
+ echo " Creating conda environment: $ENV_NAME (Python $PYTHON_VERSION)"
11
+ echo "======================================================"
12
+
13
+ conda create -y -n "$ENV_NAME" python="$PYTHON_VERSION"
14
+
15
+ # Activate inside the script
16
+ eval "$(conda shell.bash hook)"
17
+ conda activate "$ENV_NAME"
18
+
19
+ echo ""
20
+ echo "--- Installing core scientific stack via conda (fastest, binary wheels) ---"
21
+ conda install -y -c conda-forge \
22
+ numpy \
23
+ pandas \
24
+ pyarrow \
25
+ scipy \
26
+ scikit-learn \
27
+ tqdm \
28
+ ipykernel
29
+
30
+ echo ""
31
+ echo "--- Installing pip-only packages ---"
32
+ pip install \
33
+ sentence-transformers \
34
+ rapidfuzz \
35
+ xxhash \
36
+ unidecode \
37
+ faiss-cpu
38
+
39
+ echo ""
40
+ echo "--- Registering kernel: $ENV_NAME ---"
41
+ python -m ipykernel install --user \
42
+ --name "$ENV_NAME" \
43
+ --display-name "Python ($ENV_NAME)"
44
+
45
+ echo ""
46
+ echo "======================================================"
47
+ echo " Done. Kernel registered as: Python ($ENV_NAME)"
48
+ echo " To activate: conda activate $ENV_NAME"
49
+ echo "======================================================"