Installing and uninstalling the egg package

Installation

Installation execution command

easy_install hogehoge.egg

--When the installation is done, the egg will be unpacked and put in place and the reference path will be set.

Where to put the files to be deployed

--Expanded to Python library location

${python_lib}/site-packages/${egg package name))

――It depends on the environment, but for example, the following places

/usr/lib/python2.6/site-packages

Reference path write destination

${python_lib}/site-packages/easy-install.pth

Uninstall

―― 1. Find out where to install the package

python
>>> import ${module_name_in_the_package}
>>> print ${module_name_in_the_package}.__file__

--1 Hit the command with easy_install to remove the reference

easy_install -mxN ${package_name}

--2 Delete the target $ {package_name} egg file and directory

Reference

Recommended Posts

Installing and uninstalling the egg package
The process of installing Atom and getting Python running
[Linux] Update the package offline
Extract and package initrd images
Touch the mock and stub
Put logger in the open source pip package and analyze the operation
The road to installing Python and Flask on an offline PC