-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Ismael Bernad <bernad.teism20@zaragoza.salesianos.edu> Co-authored-by: Ismael Abed <abed.coism20@zaragoza.salesianos.edu>
- Loading branch information
1 parent
4866724
commit a737375
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import subprocess | ||
|
||
|
||
def instalar_librerias(): | ||
librerias = ["rich", "prompt-toolkit"] | ||
|
||
for libreria in librerias: | ||
try: | ||
# Intenta instalar la librería utilizando pip | ||
subprocess.check_call(["pip", "install", libreria]) | ||
print(f"La librería {libreria} se ha instalado correctamente.") | ||
except Exception as e: | ||
print(f"Error al instalar la librería {libreria}: {str(e)}") | ||
|
||
|
||
if __name__ == "__main__": | ||
instalar_librerias() |