0

I'm trying to run my Python script form the Terminal (I write the scripts in Sublime Text2 and I use a Mac osx). This is by no means my first time running one as such but I keep on getting this error that I have never seen before, nor do I understand it:

    dyld: Library not loaded: @rpath/Python
    Referenced from: /Users/ronaldoisabeast/Library/Enthought/Canopy_64bit/User/bin/python
    Reason: image not found

The only two commands I wrote were:

    dhcp-18-111-122-239:~ ronaldoisabeast$ cd Desktop/
    dhcp-18-111-122-239:Desktop ronaldoisabeast$ python dicegame.py 
2
  • Hard to tell without a look at the Python. Commented Sep 16, 2014 at 17:18
  • Did you tried to run Python at console, just typing python? Commented Sep 16, 2014 at 17:26

1 Answer 1

4
 export PATH=/usr/bin:$PATH

Putting that line in your ~/.bash_profile (and restarting your terminal) might fix your issue

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.