如何查找python安装包的路径site-packages?

使用命令:

python -m site

python -m site --user-site


注意当查看指定版本的python的安装包时,需要指定python版本,比如python2.7.15 -m site

参考:https://stackoverflow.com/questions/122327/how-do-i-find-the-location-of-my-python-site-packages-directory

 

猜你喜欢

转载自www.cnblogs.com/shengulong/p/10005202.html