如何定位python包

2024-04-19 18:22:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我想手动卸载一个python包,这样就不能使用import访问它。 我在系统中找不到包。 当我使用这个advice(运行python -v)时,我有下一个输出:

# /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是我要卸载的程序包的一部分。在

我怎样才能找到它?在


Tags: pyimportsqlalchemylibpackagesusrlocaldist