Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- Elasticsearch
- log
- rsyslog
- PostgreSQL
- Python
- zabbix
- 디렉토리
- GNOME
- syslog
- audit
- Audit Log
- 파이썬
- GPU
- K8S
- RHEL
- Kubernetes
- 크롬
- 서울시민카드
- bash
- Chrome
- yum
- 빅데이터
- Elk
- Linux
- JSON
- centos 7.5
- C
- Shell
- docker
- CentOS
Archives
- Today
- Total
목록python compile (1)
Sysops Notepad
[Python] 파이썬 소스 컴파일(Python source compile) 하는 방법
Linux ( centos , redhat ) 환경에서 파이썬 소스 컴파일하여 사용하는 방법 # 컴파일할 특정 디렉토리로 이동cd /home/centos/py/ # 컴파일 명령어 실행python -m compileall . # 기존 컴파일 파일 overwritepython -m compileall -f . # 특정 파일만 컴파일 하는 방법python -m py_compile name.py # 리눅스 쉘에서 실행시키는 방법python 파일 가장 최상단에 #!/usr/bin/python 추가 (경로는 상황에 따라 변경) # 참고: python 3.x 버전의 경우 -f 를 해도 기존의 pyc파일 유지 ,cache 디렉토리로 compile 된다.이를 overwrite하려면 -b 옵션 추가python3 -m co..
업무/dev
2018. 11. 14. 14:47