[Linux] compile python file

ondacloud·2023년 3월 22일
0

Linux

목록 보기
1/5
post-thumbnail

install python


amazon linux 2 - yum

yum install -y python3

amazon liuux 2 - yum / flask

yum install -y python3
pip3 install flask

amaozon linux 2 - extras

yum install -y amazon-linux-extras
amazon-linux-extras install -y python3.8

amaozon linux 2 - extras / flask

yum install -y amazon-linux-extras
amazon-linux-extras install -y python3.8

ubuntu - apt

apt install -y python3

ubuntu - apt / flask

apt install -y python3-pip
pip3 install flask

compile python file


python3 -m compileall ./<python file>
mv ./__pycahe__/*.pyc ./<python file name>.pyc
profile
클라우드 엔지니어가 목표인 학생

0개의 댓글