Skip to content

web search done right

normalize python versions

Mikkel Denker415aa14f461a
diff --git a/.cargo/config.toml b/.cargo/config.toml
index ff5fc321..b84f548e 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -2,6 +2,6 @@
rustflags = ["-C", "target-cpu=native"]
[env]
-LIBTORCH = {value = ".venv/lib/python3.11/site-packages/torch", force=true, relative=true}
-DYLD_LIBRARY_PATH = {value = ".venv/lib/python3.11/site-packages/torch/lib", force=true, relative=true}
+LIBTORCH = {value = ".venv/lib/python3/site-packages/torch", force=true, relative=true}
+DYLD_LIBRARY_PATH = {value = ".venv/lib/python3/site-packages/torch/lib", force=true, relative=true}
LIBSQLITE3_FLAGS = { value = "-DSQLITE_ENABLE_MATH_FUNCTIONS", force=true }
\ No newline at end of file
diff --git a/justfile b/justfile
index 44ef975d..8e6785c2 100644
--- a/justfile
+++ b/justfile
@@ -36,5 +36,7 @@
cargo run --release -- indexer entity data/enwiki_subset.xml.bz2 data/entity
@setup_python_env:
+ rm -rf .venv
python3 -m venv .venv
+ ln -s .venv/lib/python3* .venv/lib/python3
.venv/bin/pip install -r scripts/requirements.txt
\ No newline at end of file