我已按如下方式升级了模块
!pip install py2neo==3.1.2 --user --upgrade
pip确认已安装正确的版本。 也就是说,运行这个:
!pip show py2neo
给出了这个:
Name: py2neo
Version: 3.1.2
Summary: Python client library and toolkit for Neo4j
Home-page: http://py2neo.org/
Author: Nigel Small <nigel@py2neo.org>
Author-email: nigel@py2neo.org
License: Apache License, Version 2.0
Location: c:\users\db15237\appdata\roaming\python\python36\site-packages
Requires:
Required-by: neo4j-doc-manager
但是如果我导入模块,它会导入旧版本。这段代码:
import py2neo
print(py2neo.__version__)
返回2.0.8
如何导入版本3.1.2,pip说已安装?