我遇到了类似的问题: Theano 导入错误:没有名为 cPickle 的模块
但是使用 ete3 (www.etetoolkit.org)。我降级到 ete2 并且问题消失了,但想使用 ete3 中的功能。
在上面相关stackoverflow帖子中的评论之后,我已经升级到最新版本的'six'(1.10.0),但仍然有这个错误消息:
Traceback (most recent call last):
File "treebuilder.py", line 7, in <module>
from ete3 import *
File "/Library/Python/2.7/site-packages/ete3/__init__.py", line 56, in <module>
from .webplugin.webapp import *
File "/Library/Python/2.7/site-packages/ete3/webplugin/webapp.py", line 46, in <module>
import six.moves.cPickle
ImportError: No module named cPickle
而且,当我尝试安装 cPickle(使用 sudo 和 -H)时,我得到:
Collecting cPickle
/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Could not find a version that satisfies the requirement cPickle (from versions: )
No matching distribution found for cPickle
/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
我该如何解决这个问题?