找不到python3的站点包

时间:2018-07-19 03:09:43

标签: python-3.6 python-2.x site-packages

我试图找到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的此类站点软件包?

1 个答案:

答案 0 :(得分:0)

尝试:-  which python3命令并首先找到python
如果是Mac,则必须位于以下目录中:- /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages