mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 06:54:22 +01:00
Fix #2654 spacy language model installation
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import re
|
||||
import sys
|
||||
|
||||
import pkg_resources
|
||||
@@ -16,7 +17,7 @@ def main():
|
||||
for package in required_packages:
|
||||
if not package: # Skip empty lines
|
||||
continue
|
||||
package_name = package.strip().split("==")[0]
|
||||
package_name = re.split("[<>=@ ]+", package.strip())[0]
|
||||
if package_name.lower() not in installed_packages:
|
||||
missing_packages.append(package_name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user