- #1
- 1,427
- 96
- TL;DR Summary
- Correct procedure to install modules that is not available
Hello,
I understand that modules are essentially Python file save as .py. These files contain both functions and/or classes. To use them in our programs, we must use the keyword import.
However, this works only if the module is available, i.e. already installed in the standard Python library, correct? A library, called package, is a folder containing lots of related modules and a file called __init__.py.
On the other hand, a "distribution" like Anaconda is a full collection of libraries together with other useful tools.
If the single module that we need is not available in the standard library, we must use the Python library manager pip and install it the same way we install an entire library. I guess an internet connection must be available since the pip is practically downloading the module from the web...
Thanks for any validation/correction...
I understand that modules are essentially Python file save as .py. These files contain both functions and/or classes. To use them in our programs, we must use the keyword import.
However, this works only if the module is available, i.e. already installed in the standard Python library, correct? A library, called package, is a folder containing lots of related modules and a file called __init__.py.
On the other hand, a "distribution" like Anaconda is a full collection of libraries together with other useful tools.
If the single module that we need is not available in the standard library, we must use the Python library manager pip and install it the same way we install an entire library. I guess an internet connection must be available since the pip is practically downloading the module from the web...
Thanks for any validation/correction...