套件名稱叫 python-dotenv,但 import 時寫的是 dotenv。> pip install python-dotenv這樣做的好處是不用把 API Key 直接寫在程式裡,例如避免:



api_key = "sk-xxxxxxxx"

文章標籤:

me1237guy 發表在 痞客邦 留言(0) 人氣()


me1237guy@mincode:/mnt/c/Users/me123/python-llm-for-beginners-demo-code/basic-llm-demo$ python3 -m pip show python-dotenv
/usr/bin/python3: No module named pipme1237guy@mincode:/mnt/c/Users/me123/python-llm-for-beginners-demo-code/basic-llm-demo$ sudo apt update
Get:1 http://archive.ubuntu.com/ubuntu resolute InRelease [136 kB]
Get:2 http://security.ubuntu.com/ubuntu resolute-security InRelease [137 kB]
Get:3 http://security.ubuntu.com/ubuntu resolute-security/main amd64 Packages [371 kB]
Get:4 http://archive.ubuntu.com/ubuntu resolute-updates InRelease [137 kB]
Get:5 http://security.ubuntu.com/ubuntu resolute-security/main Translation-en [89.6 kB]
Get:6 http://security.ubuntu.com/ubuntu resolute-security/main amd64 Components [32.7 kB]
Get:7 http://security.ubuntu.com/ubuntu resolute-security/main amd64 c-n-f Metadata [4616 B]
Get:8 http://security.ubuntu.com/ubuntu resolute-security/universe amd64 Packages [150 kB]
Get:9 http://security.ubuntu.com/ubuntu resolute-security/universe Translation-en [48.3 kB]
Get:10 http://security.ubuntu.com/ubuntu resolute-security/universe amd64 Components [43.2 kB]
Get:11 http://security.ubuntu.com/ubuntu resolute-security/universe amd64 c-n-f Metadata [3552 B]
Get:12 http://security.ubuntu.com/ubuntu resolute-security/restricted amd64 Packages [321 kB]
Get:13 http://security.ubuntu.com/ubuntu resolute-security/restricted Translation-en [61.2 kB]
Get:14 http://security.ubuntu.com/ubuntu resolute-security/restricted amd64 c-n-f Metadata [396 B]
Get:15 http://security.ubuntu.com/ubuntu resolute-security/multiverse amd64 Packages [9020 B]
Get:16 http://security.ubuntu.com/ubuntu resolute-security/multiverse Translation-en [2660 B]
Get:17 http://security.ubuntu.com/ubuntu resolute-security/multiverse amd64 Components [212 B]
Get:18 http://security.ubuntu.com/ubuntu resolute-security/multiverse amd64 c-n-f Metadata [120 B]
Get:19 http://archive.ubuntu.com/ubuntu resolute-backports InRelease [136 kB]
Get:20 http://archive.ubuntu.com/ubuntu resolute/main amd64 Packages [1480 kB]
Get:21 http://archive.ubuntu.com/ubuntu resolute/main Translation-en [524 kB]
Get:22 http://archive.ubuntu.com/ubuntu resolute/main amd64 Components [395 kB]
Get:23 http://archive.ubuntu.com/ubuntu resolute/main amd64 c-n-f Metadata [32.4 kB]
Get:24 http://archive.ubuntu.com/ubuntu resolute/universe amd64 Packages [16.0 MB]
Get:25 http://archive.ubuntu.com/ubuntu resolute/universe Translation-en [6329 kB]
Get:26 http://archive.ubuntu.com/ubuntu resolute/universe amd64 Components [4556 kB]
Get:27 http://archive.ubuntu.com/ubuntu resolute/universe amd64 c-n-f Metadata [313 kB]
Get:28 http://archive.ubuntu.com/ubuntu resolute/restricted amd64 Packages [152 kB]
Get:29 http://archive.ubuntu.com/ubuntu resolute/restricted Translation-en [25.8 kB]
Get:30 http://archive.ubuntu.com/ubuntu resolute/restricted amd64 Components [556 B]
Get:31 http://archive.ubuntu.com/ubuntu resolute/multiverse amd64 Packages [290 kB]
Get:32 http://archive.ubuntu.com/ubuntu resolute/multiverse Translation-en [127 kB]
Get:33 http://archive.ubuntu.com/ubuntu resolute/multiverse amd64 Components [50.0 kB]
Get:34 http://archive.ubuntu.com/ubuntu resolute/multiverse amd64 c-n-f Metadata [8276 B]
Get:35 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 Packages [446 kB]
Get:36 http://archive.ubuntu.com/ubuntu resolute-updates/main Translation-en [111 kB]
Get:37 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 Components [84.8 kB]
Get:38 http://archive.ubuntu.com/ubuntu resolute-updates/main amd64 c-n-f Metadata [5756 B]
Get:39 http://archive.ubuntu.com/ubuntu resolute-updates/universe amd64 Packages [235 kB]
Get:40 http://archive.ubuntu.com/ubuntu resolute-updates/universe Translation-en [76.9 kB]
Get:41 http://archive.ubuntu.com/ubuntu resolute-updates/universe amd64 Components [166 kB]
Get:42 http://archive.ubuntu.com/ubuntu resolute-updates/universe amd64 c-n-f Metadata [4704 B]
Get:43 http://archive.ubuntu.com/ubuntu resolute-updates/restricted amd64 Packages [331 kB]
Get:44 http://archive.ubuntu.com/ubuntu resolute-updates/restricted Translation-en [63.0 kB]
Get:45 http://archive.ubuntu.com/ubuntu resolute-updates/restricted amd64 c-n-f Metadata [392 B]
Get:46 http://archive.ubuntu.com/ubuntu resolute-updates/multiverse amd64 Packages [11.4 kB]
Get:47 http://archive.ubuntu.com/ubuntu resolute-updates/multiverse Translation-en [3032 B]
Get:48 http://archive.ubuntu.com/ubuntu resolute-updates/multiverse amd64 Components [216 B]
Get:49 http://archive.ubuntu.com/ubuntu resolute-updates/multiverse amd64 c-n-f Metadata [256 B]
Get:50 http://archive.ubuntu.com/ubuntu resolute-backports/main amd64 Components [212 B]
Get:51 http://archive.ubuntu.com/ubuntu resolute-backports/main amd64 c-n-f Metadata [112 B]
Get:52 http://archive.ubuntu.com/ubuntu resolute-backports/universe amd64 Packages [640 B]
Get:53 http://archive.ubuntu.com/ubuntu resolute-backports/universe Translation-en [300 B]
Get:54 http://archive.ubuntu.com/ubuntu resolute-backports/universe amd64 Components [216 B]
Get:55 http://archive.ubuntu.com/ubuntu resolute-backports/universe amd64 c-n-f Metadata [116 B]
Get:56 http://archive.ubuntu.com/ubuntu resolute-backports/restricted amd64 Components [216 B]
Get:57 http://archive.ubuntu.com/ubuntu resolute-backports/restricted amd64 c-n-f Metadata [120 B]
Get:58 http://archive.ubuntu.com/ubuntu resolute-backports/multiverse amd64 Components [216 B]
Get:59 http://archive.ubuntu.com/ubuntu resolute-backports/multiverse amd64 c-n-f Metadata [120 B]
Fetched 33.5 MB in 16s (2124 kB/s)
110 packages can be upgraded. Run 'apt list --upgradable' to see them.
me1237guy@mincode:/mnt/c/Users/me123/python-llm-for-beginners-demo-code/basic-llm-demo$ sudo apt install python3-pip
Installing:
python3-pip
Installing dependencies:
python3-wheel
Recommended packages:
build-essential python3-dev
Summary:
Upgrading: 0, Installing: 2, Removing: 0, Not Upgrading: 110
Download size: 1444 kB
Space needed: 10.5 MB / 1024 GB available
Continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu resolute/universe amd64 python3-wheel all 0.46.3-2 [27.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu resolute/universe amd64 python3-pip all 25.1.1+dfsg-1ubuntu2 [1416 kB]
Fetched 1444 kB in 2s (682 kB/s)
Selecting previously unselected package python3-wheel.
(Reading database ... 35923 files and directories currently installed.)
Preparing to unpack .../python3-wheel_0.46.3-2_all.deb ...
Unpacking python3-wheel (0.46.3-2) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../python3-pip_25.1.1+dfsg-1ubuntu2_all.deb ...
Unpacking python3-pip (25.1.1+dfsg-1ubuntu2) ...
Setting up python3-wheel (0.46.3-2) ...
Setting up python3-pip (25.1.1+dfsg-1ubuntu2) ...
Processing triggers for man-db (2.13.1-1build1) ...
文章標籤:

me1237guy 發表在 痞客邦 留言(0) 人氣()

gimini: 初學者,使用限制: 4張/天,輸出圖片1K
Google AI Studio: 進階使用者,輸出圖片4K,顯示比例設定16:9,須付費綁定API Key

me1237guy 發表在 痞客邦 留言(0) 人氣()


List all environments:
> conda env list

me1237guy 發表在 痞客邦 留言(0) 人氣()


顯卡460Ti升級5060Ti出現錯誤
移除原本的版本

me1237guy 發表在 痞客邦 留言(0) 人氣()

diffusion_model

【漫士科普】人工智慧博士生告訴你SORA擴散模型究竟是怎麼產生影片的?
【機器學習2021】生成式對抗網路 (Generative Adversarial Network, GAN) (一) – 基本概念介紹

me1237guy 發表在 痞客邦 留言(0) 人氣()


cclabeler  crowd counting labeler

整張照片切割16x16,灰階為"未標記",綠色為"已標記"

me1237guy 發表在 痞客邦 留言(0) 人氣()

Residual Networks (ResNet) 

 
ResNet论文逐段精读

me1237guy 發表在 痞客邦 留言(0) 人氣()

發生一件神奇的事件,訓練yolov8在讀取幾張照片後發生錯誤如下:
原因是開啟多核心運算超過機器本身擁有的資源
不指定workers,預設值為8 workers,但錯誤訊息會讓人以為圖片存取有問題
DataLoader worker (pid(s) 2984, 5496, 5092) exited unexpectedly

me1237guy 發表在 痞客邦 留言(0) 人氣()

me1237guy 發表在 痞客邦 留言(0) 人氣()


 
Exploring EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies: A Brief Overview

me1237guy 發表在 痞客邦 留言(0) 人氣()


> conda activate yolov8



me1237guy 發表在 痞客邦 留言(0) 人氣()

1 2 3 4
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。