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 sklearndevconda install -c conda-forge sphinx-galleryconda install -c conda-forge compilersInstall 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.gitcd scikit-learnpip 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