简体   繁体   中英

Import error: Module use of python27.dll conflicts with this version of python

import sys sys.path.insert(1,"C:/Users/ravir_000/Desktop/python_CS105/python_CS105/Python27/Lib/site-packages") import math import random import pygame from pygame.locals import *

pygame.init()

How do you get rid of the error? Import error: Module use of python27.dll conflicts with this version of python. I was working on this a few hours ago and it was working fine. When I got into class it started giving me this error. I have tried to install/reinstall pyscripter and pygame but it still does not work. I am sure that my path to pygame is correct. Any ideas?

You are trying to use a pygame distribution that is for python 2.7 with a different version of python.

You should download and use the appropriate version.

If installed correctly, there will be no need for sys.path.insert .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM