Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python站点包(2.7到3.7)macOS_Python_Python 3.x_Python 2.7 - Fatal编程技术网

python站点包(2.7到3.7)macOS

python站点包(2.7到3.7)macOS,python,python-3.x,python-2.7,Python,Python 3.x,Python 2.7,我是macOS的新用户,安装了python 3.7(默认为2.7)。 我最近用自己的setup.py脚本从github克隆了一个存储库。 运行这个脚本python setup.py我得到: /Library/Python/3.7/site-packages/ This directory does not currently exist. Please create it and try again, or choose a different installation directo

我是macOS的新用户,安装了python 3.7(默认为2.7)。 我最近用自己的
setup.py
脚本从github克隆了一个存储库。 运行这个脚本
python setup.py
我得到:

    /Library/Python/3.7/site-packages/

This directory does not currently exist. Please create it and try again, or choose a different installation directory
我确信这是真的。如果我进入
/Library/Python/
我可以看到没有
3.7
目录;但是,我有
2.7/site packages
(默认)目录。这让我很困惑

如果我使用
python--version
我会得到
python3.7.3

如果我使用
python-m站点

USER_BASE: '/Users/myname/Library/Python/3.7' (exists)
USER_SITE: '/Users/myname/Library/Python/3.7/lib/python/site-packages' (exists)
我注意到存在以下
2.7
目录:

/Library/Python/2.7/site-packages
/Users/myname/Library/Python/2.7
/Users/myname/Library/Python/2.7/lib/python/site-packages
这里,
/Library/Python/2.7/site包/
/Users/myname/Library/Python/2.7/lib/Python/site包的内容有很大不同

发生了什么事?我应该有一个
/Library/Python/3.7/site-packages/
字典来(正确地)安装我的程序吗

基本上,我的
/Library/Python/3.7/site packages/
字典在哪里?为什么安装不同于
2.7

我想我正在寻找
Extras.pth、README、easy-install.pth、nose-1.3.7-py3.7.egg
版本的文件,用于
python 3.7