pythonmodulefrida

No module named frida


To install frida I used the command sudo pip install frida-tools and installation was succesful:

Installing collected packages: frida, frida-tools Successfully installed frida-12.7.16 frida-tools-5.1.0

but when running the command: frida --version

I get the following error:

  File "/usr/local/bin/frida", line 8, in <module>
    sys.exit(main())
  File "/Library/Python/2.7/site-packages/frida_tools/repl.py", line 24, in main
    import frida
ImportError: No module named frida```

Solution

  • sudo pip3 install frida-tools
    
    $ unlink /usr/local/bin/python
    $ ln -s /usr/local/bin/python3.7 /usr/local/bin/python
    

    Alternative

    $ cd ~/
    $ open -e .bash_profile
    

    paste to the editor, to the top

     alias python='python3'
    

    save, then run

    $ source ~/.bash_profile