When you're installing modules to python usually you use pip install. Does pip install do anything other than put the modules in the right place? Why can't you just copy and paste the modules?
Installing usually means having some install program like InstallShield that copies the files into the right directory and sets up some registry entries. Simple Java programs can normally be "copied", because simple Java programs usually don't need registry entries.
Pip is a package management system for managing packages written in Python. It is also known as “Pip Installs Packages” or “Pip Installs Python.” Pip uses Python Package Index (PyPI) for the packages and installs them on your system.
The Python pip utility is used to install a module, but the import command is used to actually import the module. Python includes some built-in standard modules. These modules are part of the Python Standard Library, also known as the Library Reference.
Are all pip packages generally safe? - Quora. No, the python packages are not safe to install. There are no safeguards against a maintainer uploading a malware along with the package. So basically, you have to believe that all packages are uploaded in good faith i.e. without any malware.
Using pip not only copies the modules in the right place, it also properly installs dependencies. In addition, the right place varies from one system to another, one version of python to another, and pip handles that as well.
Finally, copying and pasting files takes either manual intervention, or a lot more lines of script than a simple pip install.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With