13 lines
328 B
Python
13 lines
328 B
Python
import subprocess
|
|
import sys
|
|
|
|
venv_python = r"D:\ProgramData\anaconda3\envs\py312_cuda\python.exe"
|
|
result = subprocess.run(
|
|
[venv_python, "-m", "pip", "install", "python-pptx"],
|
|
capture_output=True,
|
|
text=True
|
|
)
|
|
print("STDOUT:", result.stdout)
|
|
print("STDERR:", result.stderr)
|
|
print("Return code:", result.returncode)
|