Question

I am completely new in Python. Installed just today in school purposes. I need to use myro module but I am getting this error ImportError: No module named 'myro' all the time. I've found out that I have installed older versions of Python already with another software like Blender or Gimp. I am using 3.4.0 version for mac. How can I get this myro module? I've downloaded zipped files from http://myro.roboteducation.org/download/ but I don't know where to copy them. In Library/Python path are just these older versions (2.3, 2.5, 2.6, 2.7). There isn't the latest version I just installed. Anybody who could help me please?

/edit. Well basically I need to be able to do some simple graphics in Python and the myro module is what I've found in youtube tutorial. But that's from 2010. Maybe there is something else today what makes graphics possible in Python 3.4.0. Anybody?

Was it helpful?

Solution

The absolute easiest thing to do in this situation is to go to this link and install Python Setuptools. Here are the installation instructions for OSX. From there you can use easy_install and get pip from here. Now all you have to do whenever you want to install a module you can:

pip install myro

I know it seems like a lot just for myro but you'll thank yourself for doing it when you want to get more serious with Python.

Now for your graphics needs.

EDIT: Update link to Pillow

There are quite a few packages for dealing with graphics but I like Pillow.

EDIT: Installing setuptools:

  1. Open your Terminal (I don't use Macs but I think you get there using Finder)
  2. type the following command:

    curl https://bootstrap.pypa.io/ez_setup.py -o - | python34

Then you should be all set. If you don't have curl then that's another can of worms.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top