python站点包(2.7到3.7)macOS
我是macOS的新用户,安装了python 3.7(默认为2.7)。 我最近用自己的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
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