Setting up Python development environment with Anaconda and Visual Studio Code

Wednesday , 28, June 2023

# Download website

- https://www.anaconda.com/

- https://code.visualstudio.com/

 

# Confirmation of python version

python --version

 

# List of virtual env

conda info -e

 

# Creating virtual env

conda create -n py3.10.9 --clone base

 

# Virtual env activation and deactivation

activate py3.10.9

deactivate

 

# Initializing powershell

conda init powershell

 

# Setting for powershell

Set-ExecutionPolicy RemoteSigned

 

 

# Sample code of python

import numpy as np

list_1 = [[[1, 2], [3, 4], [5, 6]], [[7, 8], [9, 10], [11, 12]]]

arr_1 = np.array(list_1)

print(arr_1)

print(format(arr_1.shape))