Ryan
Ryan

Reputation: 199

How to fix dyld: Library not loaded... Reason: image not found Abort trap: 6?

I'm new to learning python (and coding in general) and I've been trying to follow the directions on

http://bhowell4.com/manic-install-tutorial-for-mac/

to install manim on my Mac. Everything was going well until I tried using pip3 to install virtualenv. As the directions state, I typed

pip3 install virtualenv

into the terminal (using pycharm). It then comes back with:

dyld: Library not loaded: /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Python
  Referenced from: /Users/rdownie/PycharmProjects/practice/venv/bin/python
  Reason: image not found
Abort trap: 6

I've tried looking at fixes from different resources, but none seem to work. I've tried uninstalling and reinstalling python3, updating brew, upgrading brew, etc. Some other potential solutions I'm not sure how to implement. Any help in terms a beginner can understand is much appreciated!

Upvotes: 5

Views: 10460

Answers (3)

stephanoz
stephanoz

Reputation: 431

I had the same issue when I had Python3.6 and Python3.9 installed on the same machine running macOS Big Sur. I uninstalled and reinstalled Python3 in the hopes that Py3.6 and its links would be removed, but this didn't work.

I then manually deleted /Library/Frameworks/Python.framework/Versions/3.6 and all worked as a

Upvotes: 9

Gonzalo Garcia
Gonzalo Garcia

Reputation: 6632

I have been researching and the one answer that helped me was this one. For those that have the same problem but in MacOS.

brew update && brew upgrade
brew switch openssl 1.0.2s

Worked for me Catalina 10.15.4

Upvotes: 0

TheoremOfBeethoven
TheoremOfBeethoven

Reputation: 1969

Try with python3 -m pip install virtualenv

Upvotes: 0

Related Questions