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