Linux 服务器查找Python包的路径

130 阅读1分钟

比如我想查看 joblibspark 包在服务器上的位置,在 Python 环境下执行下面代码即可:

import joblibspark
print(joblibspark.__file__)

以上,问题解决~