For instance using the Miniforge3 installer:
https://github.com/conda-forge/miniforge
conda create -n sklearndev -c conda-forge numpy scipy matplotlib pytest sphinx cython ipykernel
- To view a list of your virtual environments:
conda env list
- To activate a virtual environment:
conda activate sklearndev
- To deactivate a virtual environment:
conda deactivate
- To remove a virtual environment:
conda env remove --name myenv
conda activate sklearndev
conda install -c conda-forge sphinx-gallery
conda install -c conda-forge compilers
Install Tools for Visual Studio from the menu at the bottom of this page:
https://visualstudio.microsoft.com/downloads/
You do not need to install the full Visual Studio IDE, just the "Tools".
Fork repo: https://github.com/scikit-learn/scikit-learn
git clone https://github.com/reshamas/scikit-learn.git
cd scikit-learn
pip install -e .
Note: this will overwrite existing installations Reference: "Editable" Installs
git remote add upstream https://github.com/scikit-learn/scikit-learn.git
my example
origin https://github.com/reshamas/scikit-learn.git (fetch)
origin https://github.com/reshamas/scikit-learn.git (push)
upstream https://github.com/scikit-learn/scikit-learn.git (fetch)
upstream https://github.com/scikit-learn/scikit-learn.git (push)
git pull upstream main