我想安装一个新的模块,但是一直出现错误。我在Mac上同时安装了Python27和Python36。在发生这种情况时,我正在使用Python27。我无法运行pip或conda。
在运行以下命令后: pip install regions
我收到了以下错误信息:
dyld: Library not loaded: @rpath/libpython3.6m.dylib
Referenced from: /Users/yan/anaconda/bin/python
Reason: no suitable image found. Did find:
/Users/yan/anaconda/bin/../lib/libpython3.6m.dylib: file too short
Abort trap: 6
还有一个相关的问题,如果我在使用Python 3.6时安装了一些模块,那么我能否在Python 2.7中导入这些模块?我需要重新安装这些模块吗?谢谢!!!