我试图找到Python3的站点软件包在哪里
➜ ~ python3 -m site --user-site
/Users/macbookpro/Library/Python/3.6/lib/python/site-packages
➜ ~ cd /Users/macbookpro/Library/Python/3.6.
cd: no such file or directory: /Users/macbookpro/Library/Python/3.6.
但是,作为Python2.7,它运行良好
➜ Python python2 -m site --user-site
/Users/macbookpro/Library/Python/2.7/lib/python/site-packages
➜ Python cd /Users/macbookpro/Library/Python/2.7
➜ 2.7
为什么没有针对Python3的此类站点软件包?
答案 0 :(得分:0)
尝试:-
which python3
命令并首先找到python
如果是Mac,则必须位于以下目录中:-
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages