[Python] 리눅스에서 실행파일 만들기
2018. 6. 18. 17:51ㆍPython관련/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 생성 되어 있음
반응형
'Python관련 > Python' 카테고리의 다른 글
[Python] 02. 데이터 타입 및 문법 (0) | 2019.02.28 |
---|---|
[Python] 01. 설치 및 셋팅 ( Codeanywhere ) (0) | 2019.02.27 |
[Python] 특정문자 파일 찾기 (0) | 2018.07.02 |
[Python] libpython3.5m.so.1.0: cannot open shared object file (0) | 2018.07.02 |
[Python] 라즈베리파이에서 자동 실행 (2) | 2018.06.12 |