What is the purpose of the 'site-packages' directory in Python?
Correct answer
B. To store third-party Python packages
20 views
B. To store third-party Python packages
20 views
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.
Not sure why the answer is B? Ask here and get an explanation.