由于哪个 pip 指向其他版本,我应该如何删除多个 python 版本?由于这个即使在成功安装后模块也没有被导入??
以下是我成功安装 imutils 但仍然出现导入错误时遇到的错误。
User-MacBook-Pro:~ user$ sudo pip install imutils
Collecting imutils
Installing collected packages: imutils
Successfully installed imutils-0.5.1
User-MacBook-Pro:~ user$ -H
-bash: -H: command not found
User-MacBook-Pro:~ user$ sudo -H pip install imutils
Requirement already satisfied: imutils in /usr/local/lib/python2.7/site-packages (0.5.1)
为 Python2.7 安装了 imutils,当我检查它是否成功导入 imutils 库时,它显示以下错误消息:
User-MacBook-Pro:~ user$ python
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 12:01:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>import imutils
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named imutils
这里有什么问题以及如何解决它?
以下是我的 bin 目录,它有多个 python 版本,但我无法理解要删除哪个?在此处输入图像描述