0

我正在尝试查找 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 没有这样的站点包?

4

1 回答 1

0

尝试:- which python3命令并首先找到python
,如果它的mac,它必须在下面的目录中:- /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages

于 2018-07-19T08:28:35.530 回答