From 4006f5f4e2670c1da89fad94520f3ac5ed1cb5dd Mon Sep 17 00:00:00 2001 From: unclecode Date: Thu, 16 May 2024 20:24:48 +0800 Subject: [PATCH] chore: Update pip installation command to use sys.executable --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a7b25d29..494ed176 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ from setuptools import setup, find_packages from setuptools.command.install import install as _install import subprocess +import sys class InstallCommand(_install): def run(self): @@ -13,7 +14,7 @@ class InstallCommand(_install): with open('requirements.txt') as f: dependencies = f.read().splitlines() for dependency in dependencies: - subprocess.check_call([self.executable, '-m', 'pip', 'install', dependency]) + subprocess.check_call([sys.executable, '-m', 'pip', 'install', dependency]) setup( name="Crawl4AI",