【发布时间】:2019-05-28 12:11:06
【问题描述】:
我通过brew install python 安装了python 3.7,它提供了以下响应
==> python
Python has been installed as
/usr/local/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin
If you need Homebrew's Python 2.7 run
brew install python@2
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.7/site-packages
但是当我打电话给pip3 install neo4j 时,它说要求已经满足,指向python 的早期发行版:
Sffd-MBP:~ Sffd$ pip3 install neo4j
Requirement already satisfied: neo4j in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (1.7.4)
表明自制软件没有未版本化的符号链接。手动执行此操作的最佳方法是什么?有人知道为什么这没有自动发生吗?
【问题讨论】:
标签: python pip homebrew python-3.7