일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 용량
- FileSystemError
- AI
- error
- Volumes
- nginx-proxy
- pip3 upgrade
- python3
- ollama
- python pip
- modelfile
- reverse-proxy
- IQN
- docker
- Save
- virtual-hosted-style
- 리눅스
- path-style
- HuggingFace
- daemon.json
- capacity
- GGUF
- Linux
- LLM
- Python
- 패키지
- 파이썬
- 핍
- 퍼이썬
- 버전
- Today
- Total
목록NOTES/PYTHON (7)
chargingport

# teacher.json [ { "id": 1, "name": "John Doe", "class": "English" }, { "id": 2, "name": "Jack Black", "class": "Music" }, { "id": 3, "name": "Eminem", "class": "Music" }, { "id": 4, "name": "John Doe", "class": "Music" } ] from flask import Flask, jsonify, request import json app = Flask(__name__) # Load the tea data from the JSON file with open('teacher.json', 'r') as file: teachers = json.loa..

# sample.json [ { "name": "John Doe", "class": "English" }, { "name": "Jack Black", "class": "Music" }, { "name": "Eminem", "class": "Music" }, { "name": "John Doe", "class": "Music" } ] 위와 같은 JSON 파일이 있다. John Doe 라는 사람이 2번 들어가있다. Python으로 중복되는 항목을 탐색해보자. # duplicate.py import json # Load the JSON data from your file with open('teaListEng2.json', 'r') as json_file: data = json.load(json_file) #..

chargingport-tutoral 이란 가상환경 (venv) 생성 python3 -m venv chargingport-tutorial 가상환경 실행: (윈도우) tutorial-env\Scripts\activate.bat (MacOS / UNIX) source tutorial-env/bin/activate woo@LAPTOP-6V2PCO70:/tmp/chargingport$ source chargingport-tutorial/bin/activate (chargingport-tutorial) woo@LAPTOP-6V2PCO70:/tmp/chargingport$ 가상환경 종료: deactivate 가상환경 삭제: sudo rm -rf chargingport-tutorial/

pip 설치 pip install pip install pandas 특정 pip 버전 설치 pip install == pip install pandas==2.1.0 pip 제거 pip uninstall pip uninstall pandas Python Package 리스트 확인 pip list Python requirements.txt 생성 pip freeze > requirements.txt Package Version --------------- ------------ numpy 1.25.2 pandas 2.1.0 pip 22.2.2 python-dateutil 2.8.2 pytz 2023.3.post1 setuptools 63.2.0 six 1.16.0 tzdata 2023.3 Python requ..

sudo pip3 install --upgrade pip 위 명령어 오류 발생시: sudo -H pip3 install --upgrade pip
파이썬에서 email 패키지 모듈을 사용 시 아래 오류가 발생할 때가 있다 # email.py from email import encoders from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase Original exception was: Traceback (most recent call last): File "email.py", line 2, in from email.mime.text import MIMEText File "/mnt/c/Users/chargingport/Desktop/temp/email.py", line 2, in from e..