0% found this document useful (0 votes)
8 views2 pages

VSCode Anaconda Setup Guide

This document provides a step-by-step guide for setting up a Python environment using Anaconda and VS Code. It includes instructions for installing Anaconda and VS Code, creating an Anaconda environment, adding it to Jupyter and VS Code, selecting the interpreter, and verifying the installation. An optional step for making the environment permanent in VS Code is also included.

Uploaded by

chibaxaya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

VSCode Anaconda Setup Guide

This document provides a step-by-step guide for setting up a Python environment using Anaconda and VS Code. It includes instructions for installing Anaconda and VS Code, creating an Anaconda environment, adding it to Jupyter and VS Code, selecting the interpreter, and verifying the installation. An optional step for making the environment permanent in VS Code is also included.

Uploaded by

chibaxaya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

VS Code + Anaconda Python Environment Setup

Step 1 - Install Anaconda & VS Code


- Download Anaconda: https://www.anaconda.com/products/distribution
- Download VS Code: https://code.visualstudio.com/
- In VS Code, install the Python extension.

Step 2 - Create Anaconda Environment


In Anaconda Prompt:
conda create -n myenv python=3.9
conda activate myenv
pip install tensorflow scikit-learn matplotlib pandas

Step 3 - Add Environment to Jupyter & VS Code


While environment is active:
pip install ipykernel
python -m ipykernel install --user --name=myenv --display-name Python (myenv)

Step 4 - Select Interpreter in VS Code


In VS Code:
Press Ctrl+Shift+P then select: Python: Select Interpreter
Choose: Python (myenv)

Step 5 - Verify Installation


Create a Python file and run:
import tensorflow as tf
import sklearn
print(tf.__version__)
print(sklearn.__version__)

Optional - Permanent Environment in VS Code


In your project folder, create '.vscode/settings.json' with:
{
"python.pythonPath": "C:/Users/Aya/anaconda3/envs/myenv/python.exe"
}

You might also like