3

I installed Anaconda, and I run my scripts on terminal successfully with:

python3 scritp.py

When I execute on Geany I get:

ImportError: No module named 'numpy'

How to run a python script on Geany as I do on Terminal?

5

You should write the full python3 path to execute on Geany, as explained below:

First, on terminal:

which python3

And you'll get something like:

/home/myUser/anaconda3/bin/python3

Copy it, open a any python script on Geany, Build>Set Build Commands>Execute Commands>Execute> and substitute python by /home/myUser/anaconda3/bin/python3

enter image description here

(Of course if you are using other python version, the procedure is the same)

  • Not working for me on geany 1.29. – Stephen Boston Apr 27 '18 at 13:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.