YUNOVA · Python programming

Module 10: Modules & Environment

Notes for offline study · 30 November 2026

Python me module import karna

Key points

  • import से किसी दूसरी file या library का code आपके program में आता है।
  • import के बाद library का नाम लगाकर उसके function इस्तेमाल होते हैं।
  • from लिखकर सिर्फ़ एक ही function भी लिया जा सकता है।

pip se Python library install karna

Key points

  • pip Python का installer है जो library download करके लगाता है।
  • यह terminal में चलता है, code के अंदर नहीं।
  • pip list से दिखता है कि कौन-सी library पहले से लगी हैं।

Python me virtual environment banana

Key points

  • Virtual environment हर project के लिए अलग library रखता है।
  • यह एक command से बनता है और activate करने पर ही चालू होता है।
  • इससे एक project की library दूसरे project को नहीं बिगाड़ती।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.