파이썬

[파이썬] 우분투 에 파이썬 개발환경 구축해보기

LEEHANDS 2021. 1. 15. 00:57
반응형

참고 사이트 : www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-an-ubuntu-20-04-server

 

Step 1 — Setting Up Python 3

 

sudo apt update
sudo apt -y upgrade

 

sudo apt install -y python3-pip

 

There are a few more packages and development tools to install to ensure that we have a robust setup for our programming environment:

sudo apt install -y build-essential libssl-dev libffi-dev python3-dev

Once Python is set up, and pip and other tools are installed, we can set up a virtual environment for our development projects.

 

Step 2 — Setting Up a Virtual Environment

sudo apt install -y python3-venv
mkdir environments
cd environments

 

Step 3 — Creating a “Hello, World” Program

 

vim hello.py

vim Edit 사용시 wq 를 사용해야 정상적으로 출력한다.

반응형