Skip to content

Commit 924b47b

Browse files
Sid MohanSid Mohan
Sid Mohan
authored and
Sid Mohan
committed
sys.executable
1 parent 6e88412 commit 924b47b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: datafog/processing/text_processing/spacy_pii_annotator.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ def create(cls) -> "SpacyPIIAnnotator":
3737
nlp = spacy.load("en_core_web_lg")
3838
except OSError:
3939
import subprocess
40+
import sys
4041

42+
interpreter_location = sys.executable
4143
subprocess.run(
4244
[
43-
"python",
45+
interpreter_location,
4446
"-m",
4547
"pip",
4648
"install",

0 commit comments

Comments
 (0)