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

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..

import pickle dict = {'A': 1, 'B': 2, 'C': 3} # dictionary를 dictionary.pkl에 저장 with open("dictionary.pkl", "wb") as output_file: pickle.dump(dict, output_file) # dictionary.pkl을 dictionary로 저장 with open("dictionary.pkl", "rb") as input_file: newDict = pickle.load(input_file) print(newDict) $ python3 main.py {'A': 1, 'B': 2, 'C': 3}