Skip to content

Instantly share code, notes, and snippets.

@nov05
Last active February 6, 2025 00:27
Show Gist options
  • Save nov05/a6eccfd88ef180d5cae0d0d0e2fc646d to your computer and use it in GitHub Desktop.
Save nov05/a6eccfd88ef180d5cae0d0d0e2fc646d to your computer and use it in GitHub Desktop.
  • Uninstall all VS Code extensions
    Delete C:\Users\*\.vscode\extensions folder
    Reinstall extensions

  • Remove Jupyter kernels

(base) PS D:\github\udacity-nd009t-capstone-starter> jupyter kernelspec list
Available kernels:
  awsmle_py37        C:\Users\guido\AppData\Roaming\jupyter\kernels\awsmle_py37
  drlnd_py310        C:\Users\guido\AppData\Roaming\jupyter\kernels\drlnd_py310
  drlnd_py311        C:\Users\guido\AppData\Roaming\jupyter\kernels\drlnd_py311
  sagemaker_py310    C:\Users\guido\AppData\Roaming\jupyter\kernels\sagemaker_py310
  python3            D:\Users\guido\miniconda3\share\jupyter\kernels\python3
(base) PS D:\github\udacity-nd009t-capstone-starter> jupyter kernelspec uninstall awsmle_py37
Kernel specs to remove:
  awsmle_py37           C:\Users\guido\AppData\Roaming\jupyter\kernels\awsmle_py37
Remove 1 kernel specs [y/N]: y
Removed C:\Users\guido\AppData\Roaming\jupyter\kernels\awsmle_py37
(base) PS D:\github\udacity-nd009t-capstone-starter> jupyter kernelspec uninstall awsmle_py37
Couldn't find kernel spec(s): awsmle_py37
(base) PS D:\github\udacity-nd009t-capstone-starter> jupyter kernelspec list
Available kernels:
  drlnd_py310        C:\Users\guido\AppData\Roaming\jupyter\kernels\drlnd_py310
  drlnd_py311        C:\Users\guido\AppData\Roaming\jupyter\kernels\drlnd_py311
  sagemaker_py310    C:\Users\guido\AppData\Roaming\jupyter\kernels\sagemaker_py310
  python3            D:\Users\guido\miniconda3\share\jupyter\kernels\python3
(base) PS D:\github\udacity-nd009t-capstone-starter> jupyter kernelspec uninstall sagemaker_py310                                                    
Kernel specs to remove:                                                                                                                              
  sagemaker_py310       C:\Users\guido\AppData\Roaming\jupyter\kernels\sagemaker_py310
Remove 1 kernel specs [y/N]: y
Removed C:\Users\guido\AppData\Roaming\jupyter\kernels\sagemaker_py310
(base) PS D:\github\udacity-nd009t-capstone-starter> jupyter kernelspec list
Available kernels:
  drlnd_py310    C:\Users\guido\AppData\Roaming\jupyter\kernels\drlnd_py310
  drlnd_py311    C:\Users\guido\AppData\Roaming\jupyter\kernels\drlnd_py311
  python3        D:\Users\guido\miniconda3\share\jupyter\kernels\python3
  • Remove conda envs
(base) PS D:\github\udacity-nd009t-capstone-starter> conda env list
# conda environments:
#
base                  *  D:\Users\guido\miniconda3
awsmle_py310             D:\Users\guido\miniconda3\envs\awsmle_py310
cuda_py310               D:\Users\guido\miniconda3\envs\cuda_py310
drlnd_py310              D:\Users\guido\miniconda3\envs\drlnd_py310
drlnd_py310_backup       D:\Users\guido\miniconda3\envs\drlnd_py310_backup
drlnd_py311              D:\Users\guido\miniconda3\envs\drlnd_py311
huggingface_py311        D:\Users\guido\miniconda3\envs\huggingface_py311
sagemaker_py310          D:\Users\guido\miniconda3\envs\sagemaker_py310
sagemaker_py313          D:\Users\guido\miniconda3\envs\sagemaker_py313
cuda_py310               d:\Users\guido\miniconda3\envs\cuda_py310
huggingface_py311        d:\Users\guido\miniconda3\envs\huggingface_py311

(base) PS D:\github\udacity-nd009t-capstone-starter> conda env remove -n cuda_py310

Remove all packages in environment D:\Users\guido\miniconda3\envs\cuda_py310:

(base) PS D:\github\udacity-nd009t-capstone-starter> conda env remove -n huggingface_py311 

Remove all packages in environment D:\Users\guido\miniconda3\envs\huggingface_py311:

(base) PS D:\github\udacity-nd009t-capstone-starter> conda env remove -n sagemaker_py310  

Remove all packages in environment D:\Users\guido\miniconda3\envs\sagemaker_py310:

(base) PS D:\github\udacity-nd009t-capstone-starter> conda env remove -n sagemaker_py313

Remove all packages in environment D:\Users\guido\miniconda3\envs\sagemaker_py313:

(base) PS D:\github\udacity-nd009t-capstone-starter> conda env list
# conda environments:
#
base                  *  D:\Users\guido\miniconda3
awsmle_py310             D:\Users\guido\miniconda3\envs\awsmle_py310
drlnd_py310              D:\Users\guido\miniconda3\envs\drlnd_py310
drlnd_py310_backup       D:\Users\guido\miniconda3\envs\drlnd_py310_backup
drlnd_py311              D:\Users\guido\miniconda3\envs\drlnd_py311
@nov05
Copy link
Author

nov05 commented Feb 6, 2025

🟢 Create conda env awsmle_py310

conda create --name awsmle_py310 python=3.10
conda activate awsmle_py310
conda install ipykernel
pip install boto3 sagemaker matplotlib pillow
pip install webdataset  
pip install wandb
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment