Thursday, 5 September 2013

How to locate a python package

How to locate a python package

I want to manually uninstall a python package, so it would not be
accessible using import. I cannot locate the package in my system. When I
use this advice (run python -v), I have next output:
#
/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/clsregistry.pyc
matches
/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/clsregistry.py
import sqlalchemy.ext.declarative.clsregistry # precompiled from
/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/clsregistry.pyc
# myfile.pyc matches myfile.py
import myfile # precompiled from myfile.pyc
myfile is a part of the package I want to uninstall.
How can I locate it?

No comments:

Post a Comment