informatica:linux:python
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:python [2015/04/13 20:19] – external edit 127.0.0.1 | informatica:linux:python [2024/11/10 23:57] (current) – jose | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| print(r.text) | print(r.text) | ||
| </ | </ | ||
| + | ====== Fecha ====== | ||
| + | Python 3 | ||
| + | import datetime | ||
| + | f" | ||
| + | | ||
| + | ' | ||
| + | Python 2 | ||
| + | from datetime import datetime | ||
| + | |||
| + | fecha = datetime.now() | ||
| + | print(fecha.strftime(" | ||
| + | |||
| + | |||
| + | ====== Entorno virtual ====== | ||
| + | Para mas seguridad se crean entornos virtuales | ||
| + | |||
| + | Crear entorno para vosk | ||
| + | python3 -m venv ~/ | ||
| + | USar el entorno | ||
| + | source ~/ | ||
| + | Ahora aparece en el prompt el entorno y los paquetes que se instalen están solo aquí | ||
| + | (mi_entorno_vosk) jose@avtp239: | ||
| + | |||
| + | |||
informatica/linux/python.1428956385.txt.gz · Last modified: by 127.0.0.1
