在使用conda install装完库,有的时候我们想查看或修改这些库的源码,这些库被放在哪里呢?
在Python中使用
import module
print(module.__file__)
即可
如:
import tensorflow
print(tensorflow.__file__)
在使用conda install装完库,有的时候我们想查看或修改这些库的源码,这些库被放在哪里呢?
在Python中使用
import module
print(module.__file__)
即可
如:
import tensorflow
print(tensorflow.__file__)