DEV Community

Discussion on: Python101: น้องงูและถิ่นที่อยู่ 🐍

Collapse
 
nphongnara profile image
Narathip Phongnara

ช่วยยกตัวอย่างการติดตั้งหลายๆ package/module พร้อมกันผ่าน .txt file ทีครับ ผมอยากรู้มากๆเลย ขอบคุณครับ :)

Collapse
 
robgthai profile image
Poohdish Rattanavijai

ในไพธอนมีการลงผ่าน requirement file ได้ครับ ซึ่งในไฟล์นี้จะมีรายการ dependency ที่ตัวเราใช้พร้อมเวอร์ชั่น หน้าตาเหมือนผลลัพท์จาก pip freeze ในบทความเลยครับ ส่วนวิธีลงก็ง่ายมากครับใช้ pip ได้เลยด้วย pip install -r requirement.txt

Collapse
 
nphongnara profile image
Narathip Phongnara

อ่อ ขอบคุณครับ

Collapse
 
praewpraewp profile image
praewpraew-p • Edited

เหมือนอย่างที่คุณ Poohdish อธิบายเลยค่ะ ตามนั้นเลย ทั้งนี้ก็ขอแปะตัวอย่างไว้ให้ดูเพื่อความเข้าใจง่ายด้วยนะคะ หน้าตาของ requirement.txt ก็จะประมาณนี้เลย 🙇‍♀️ github.com/Yelp/data_pipeline/blob...

Collapse
 
nphongnara profile image
Narathip Phongnara

ขอบคุณมากๆเลยครับผม ^^"