Entornos virtuales con Anaconda y pip
¿Qué son los entornos virtuales?
Instalación de Anaconda
Conda: creación de entornos virtuales desde terminal
Conda: eliminar entornos virtuales y paquetes
Conda: actualización, clonación y exportación de entornos
Manejo de entornos virtuales desde Anaconda Navigator
Quiz: Entornos virtuales con Anaconda y pip
Uso de Jupyter Notebook y JupyterLab
Jupyter Notebooks desde Anaconda
Comandos mágicos de Jupyter Notebooks
Control de versiones en Notebooks
JupyterLab
Configuración de Notebooks en Visual Studio Code
Navegación de Notebooks en Visual Studio Code
Quiz: Uso de Jupyter Notebook y JupyterLab
Proyectos con Cookiecutter
conda-forge
Proyectos de Data Science y Machine Learning con Cookiecutter
Crear plantillas de proyecto personalizadas
Implementar hooks
Quiz: Proyectos con Cookiecutter
Estructura de entorno en proyectos
Múltiples entornos en un proyecto de Data Science
Anaconda is an indispensable platform for more than 20 million developers in the world of data science and Machine Learning. Large companies like Facebook, NASA and Tesla choose it to develop artificial intelligence models and manage complex projects. With Anaconda, data scientists can manage hundreds of Python and R packages and libraries within controlled virtual environments, ensuring stability and reproducibility in their projects.
Virtual environment management: With Conda, you can create and manage project-specific virtual environments, avoiding dependency conflicts.
Simplified package installation: The installation of packages such as Numpy, Pandas or Scikit Learn is done with a single command.
Incorporation of Jupyter Notebooks: The original notebooks come pre-installed, facilitating the development and presentation of projects.
The installation of Anaconda may vary slightly depending on the operating system. Here we explain how to do it for Windows, Linux (using WSL) and Mac:
Download the Linux installer from the Anaconda website.
Copy the .sh file to the home folder of your Linux distribution (e.g. Ubuntu) inside WSL.
Open a terminal in the same folder and run the command:
bash filename-file-name.sh
Accept the terms and conditions and follow the steps to complete the installation.
Verify the installation with:
conda env list
Download the installer for Windows from the Anaconda website.
Run the installer and follow the on-screen instructions, accepting the terms and conditions.
Decide whether to install for all users or just for your account, and choose the option to add Anaconda to the PATH if you wish.
Verify the installation using Anaconda Prompt or PowerShell:
conda info
On the Anaconda download page, choose the appropriate option for your processor type (Apple Silicon or Intel Chip).
Download and run the graphical installer or use the command line as you prefer.
Accept the terms and conditions and complete the installation process.
Verify that Anaconda is installed correctly using the terminal:
conda info
Anaconda, Miniconda and PIP are Python package management tools, but each has its own particularities:
Anaconda:
Includes more than 250 pre-installed packages.
It is ideal for data science, Machine Learning and artificial intelligence projects.
Miniconda:
Provides a smaller installation with less than 70 packages.
Recommended for those who want more control and know what packages they will need.
PIP:
Does not include pre-installed packages and is more general.
Useful in any Python development environment.
Remember that constant practice and familiarization with the tools are key to master data science with platforms like Anaconda. Explore, practice and evolve your career in this fascinating field!
Contributions 8
Questions 3
Want to see more contributions, questions and answers from the community?