Python--mac/终端/iTerm 查看python安装路径


1、terminal(终端) : 

input(输入): which python 或which Python 或which python*(Python的版本号)

 

 

2、terminal:

input : python  --->import sys  ----> print sys.path

使用exit()退出Python交互式模式:

3、mac版Pycharm第三方库路径

/Library/Python/2.7/lib/python/site-packages

 

 cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

这两个路径的区别是?


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM