0

I've just installed Python 2.7.8 (as default version) following these steps. I was using Python 2.7.6 before this. I have been importing modules such as pyglet, gasp and pygame normally. Now, I can't import any of these (whenever I try, I get

No module named (some module)

error). I haven't changed anything. Each of these are properly installed. I even removed (with all dependencies) and installed pyglet again, but problem remained. Please help.

1 Answer 1

1

Are you sure you are installing the modules under new Python installation directory?

You need to install all the modules for the new Python version.

  • Check under your Python2.7.8 installation directory <PYTHON2.7.8_INSTALL_DIR>\Lib\site-packages\ whether you have all the needed modules or not.
  • To install into the modules under the new Python, use the new easy_install.exe or pip.exe under <PYTHON2.7.8_INSTALL_DIR>\Scripts
Sign up to request clarification or add additional context in comments.

8 Comments

I would really like to do what you said, but I'm not sure whether I know how to. If you can, please provide some step-by-step guide for me what to do. @sk11
Where do you install your Python2.7.8? And where was your Python2.7.6 was installed?
I would like if I know what to answer. I followed this: askubuntu.com/questions/101591/… (first answer).
Tell me how to check. @sk11
Try whereis python2.7.8 and whereis python2.7.6
|

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.