Reputation: 33
I am trying to simply install a new module. But it kept giving me errors. I have both python27 and python36 on Mac. I am using python27 when this happened. I could not run either pip or conda.
After I run: pip install regions
I got these errors:
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
And another relevant question, if I installed some modules when using python36, could I import these in python27? Do I need to reinstall those? Thanks!!!
Upvotes: 3
Views: 3076
Reputation: 8009
Unfortunately, not all modules are compatible with Anaconda Python (as I can see from the log, you use it). The problem like this also appears for
virtualenv
. But regions
documentation indicates the way to install it with conda
.
Using conda To install regions with Anaconda from the astropy channel on anaconda.org simply run:
conda install -c astropy regions
And about the second question - no, modules should be installed separately for Python 2 and 3
Upvotes: 3