Python Forum

Full Version: import
You're currently viewing a stripped down version of our content. View the full version with proper formatting.


Hello Team,

I am trying to import a program into my terminal to run. I am currently working through a few courses on Python. I have been using sublime text editor to write the code, but I want to import them in to run. I am using ubuntu 16.04. I saved the programs on my desktop. I have tried using import testing123, but the output is no module named testing123.

I have read through some documentation, but I am not seeing how to resolve this. I even tried saving the program in etc/python2.7 (i have used python 2.7 and Python 3.5).

Can someone please point me in the right direction?

Thanks
you need an __init__.py file which lists all modules./
see: http://mikegrouchy.com/blog/2012/05/be-p...t__py.html