1. Home
  2. Data Science
  3. Python
  4. What is the purpose of the 'site-packages' directory in…

Added 10 Feb 2024

What is the purpose of the 'site-packages' directory in Python?

  1. To store Python standard library modules
  2. To store third-party Python packages Correct answer
  3. To store Python interpreter binaries
  4. To store Python configuration files

Correct answer

B. To store third-party Python packages

20 views

MCQSEXAM

Explanation

The 'site-packages' directory in Python is used to store third-party Python packages installed using tools like pip. It is located within the Python installation directory and contains subdirectories for each installed package, along with their corresponding files and metadata.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs