【问题标题】:Brew install python 3.7 has not updated to locationBrew install python 3.7 尚未更新到位置
【发布时间】: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


    【解决方案1】:

    您必须重新安装它。 运行:

    pip3 卸载 neo4j

    pip3 安装 neo4j

    【讨论】:

    • 否,因为它链接到 python 3.5.2 而不是 python 3.7
    • 尝试:python3.7 -m pip install neo4j
    • 可惜不存在
    • 但是解释器在pycharm上,解释器就在那里
    • 如果你在命令行中输入python3.7,它会说什么?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-02-15
    • 1970-01-01
    • 2018-04-06
    • 1970-01-01
    • 1970-01-01
    • 2021-02-25
    • 1970-01-01
    相关资源
    最近更新 更多