python
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
python [2017/05/23 22:26] – [Anaconda] rex8312 | python [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Python ====== | ====== Python ====== | ||
+ | * [[python: | ||
+ | |||
+ | ===== 의미있는 주석 ===== | ||
+ | |||
+ | # | ||
+ | |||
+ | ===== Web Server ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== 동적으로 명령 실행 ===== | ||
+ | |||
+ | * eval | ||
+ | * exec | ||
+ | * compile | ||
+ | |||
+ | ===== Tip ===== | ||
+ | |||
+ | python interpreter 경로 찾기 | ||
+ | |||
+ | <code python> | ||
+ | import sys | ||
+ | sys.executable | ||
+ | </ | ||
===== 병렬처리 ===== | ===== 병렬처리 ===== | ||
줄 58: | 줄 82: | ||
- | ====== Anaconda ====== | ||
- | |||
- | 가상 환경 생성 | ||
- | |||
- | conda create -n py35 python=3.5 anaconda | ||
- | |||
- | 가상 환경 제거 | ||
- | |||
- | conda remove --name py35 --all | ||
- | | ||
- | libstdc++.so 버전이 낮을 때 | ||
- | |||
- | conda install libgcc | ||
- | | ||
- | mkl이 문제가 될때 | ||
- | |||
- | conda install nomkl | ||
- | | ||
- | conda channel 추가 | ||
- | |||
- | conda config --add channels {채널이름} | ||
- | # conda config --add channels conda-forge | ||
- | # conda config --add channels r | ||
- | | ||
- | windows에서 mingw 설치 | ||
- | |||
- | conda install mingw | ||
- | conda install libpython | ||
- | conda install m2-util-linux | ||
- | conda install git | ||
- | conda install m2-vim | ||
- | conda install m2-make | ||
- | conda install m2w64-gcc | ||
- | conda install cmake | ||
- | conda install make | ||
===== File stream open ===== | ===== File stream open ===== | ||
줄 111: | 줄 100: | ||
* | * | ||
| | ||
+ | ===== 단위 테스트 ===== | ||
+ | |||
+ | [[python: | ||
+ | |||
+ | ===== 인코딩(Encoding) ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | |||
+ | ===== Tip ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== Memory 누출 확인 ===== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | ===== dataclass ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | |||
+ | ===== 인텔 배포판 ===== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== SSL 인증 안하기 ===== | ||
+ | |||
+ | <code bash> | ||
+ | conda config --set ssl_verify no | ||
+ | |||
+ | pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org <package name> | ||
+ | </ |
python.1495578362.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)