在aws上运行ec2实例;当试图运行导入多个包的脚本时,所有包都正确导入,除了一个:'fuzzywuzzy'(用于模糊字符串匹配)。我尝试从虚拟服务器中的源代码安装fuzzywuzzy,但aws通过自动卸载来做出反应。
[ec2-user@ip-172-31-39-215 BearTrap]$ python
Python 2.7.9 (default, Apr 1 2015, 18:18:03)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import csv
>>> import string
>>> import ast
>>> import itertools
>>> from collections import OrderedDict
>>> import fuzzywuzzy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named fuzzywuzzy