Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between installing files with pip and copy-pasting

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?

like image 731
user3364161 Avatar asked Feb 25 '17 23:02

user3364161


People also ask

What is the difference between install and copy?

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.

What does install with pip mean?

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.

What is the difference between pip install and import?

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.

Is installing pip packages safe?

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.


1 Answers

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.

like image 111
Jim Deville Avatar answered Sep 18 '22 10:09

Jim Deville