Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix `install_system_packages` method in the Python SDK (#203)

Vasek Mlejnsky50238fb1e475
diff --git a/.changeset/fifty-cats-divide.md b/.changeset/fifty-cats-divide.md
new file mode 100644
index 000000000..d36baf57e
--- /dev/null
+++ b/.changeset/fifty-cats-divide.md
@@ -0,0 +1,5 @@
+---
+'@e2b/python-sdk': patch
+---
+
+Fix the "install_system_packages" method in the Python SDK
diff --git a/packages/python-sdk/e2b/templates/data_analysis.py b/packages/python-sdk/e2b/templates/data_analysis.py
index 7fc342de8..e9b85fe69 100644
--- a/packages/python-sdk/e2b/templates/data_analysis.py
+++ b/packages/python-sdk/e2b/templates/data_analysis.py
@@ -118,7 +118,7 @@ class DataAnalysis(Session):
if isinstance(package_names, list):
package_names = " ".join(package_names)
- process = self.process.start(f"apt-get {package_names}", timeout=timeout)
+ process = self.process.start(f"apt-get install {package_names}", timeout=timeout)
process.wait()
if process.exit_code != 0: