[Python] 리눅스에서 실행파일 만들기

2018. 6. 18. 17:51Python관련/Python

sudo apt-get install python2.7-examples


터미널로 /usr/lib/python2.7/ 위치로 이동


ln -s config-뭐라고 되있는데 다다름 config 바로가기로 변경


python /usr/share/doc/python2.7/examples/Tools/freeze/freeze.py hello.py


make


하고 나면 실행파일 생성 된다. 




sudo apt-get install python-setuptools

Installation pyinstaller: You can pip install the pyinstaller

pip install pyinstaller

if you do not have pip then you can install pip using

sudo apt-get install python-pip



sudo pip3 install pyinstaller



pyinstaller --onefile test.py


dist 생성 되어 있음