Click here to Skip to main content
14,880,257 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
first i install python 3.3 on my pc (OS : Windows 7 32bit) and then i install python 2.7 on the same platform.
Now python 2.7 works fine but python 3.3 gives the following error.
(Toggle Plain Text)
Fatal Python error: Py_Initialize: unable to load the file system codec
File "C:\Python27\lib\encodings\", line 123
raise CodecRegistryError,\
SyntaxError: invalid syntax


1 solution

The popularity, as well as quite a light weight of Python really lead to the situation when even the users never using Python itself already have two or more different versions of it, just because it is used by several different applications and systems.

On Linux, this is usually not a problem; and it is very typically that only one version of Python is actually used. On Windows, it is a potential problem (having some redundant version of the same thing is not a perfect situation anyway), but it should not become a real problem. After all, several application programs you already have never mess up different versions, do they? :-)

You should take care about on simple thing: don't rely on the access to the Python files (or any other files, for that matter) through a commonly accessed path, such as prescribed in the PATH environment variable. Instead, calculate the path to Python files based on the location of your application program. I cannot give you more detail based on the information you provided, but I hope you got the idea.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900