[issue27054] Python installation problem: No module named 'encodings'
Hugh C. Lauer added the comment: All, it seems that installation of Python 3.5.1 on Windows 7 must also be done as administrator. Once I did that, the installation of Python 3.5.1, numpy 1.11.0, and matplotlib 1.5.1 all went seamlessly. The only environment variable that was changed was to add the Python installation directory to the PATH environment variable. Regards, Hugh C. Lauer Worcester Polytechnic Institute -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27054> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27054] Python installation problem: No module named 'encodings'
Hugh C. Lauer added the comment: I am back from my travels. Thanks Zachary for this. On Windows 10, no PYTHON or PYTHONHOME environment variable is set. On Windows 7, they are set. Moreover, even though I am installing Python 3.5.1, the refer to C:\Program files\Python34 ! I will continue to experiment with this. Regards, Hugh Lauer Worcester Polytechnic Institute -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27054> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27054] Python installation problem: No module named 'encodings'
Hugh C. Lauer added the comment: I am back from my travels. Thanks very much, Stefan. Running as administrator did the trick for Windows 10 installations. I now have a reliable, repeatable protocol that I can give to students with little computing experience that will enable them to install Python on their Windows 10 laptops. Hugh Lauer Worcester Polytechnic Institute -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27054> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27054] Python installation problem: No module named 'encodings'
Hugh C. Lauer added the comment: Thanks, I will try it when I get out of airports. Hugh Lauer On May 19, 2016 11:56 AM, Zachary Ware <rep...@bugs.python.org> wrote: > > > Zachary Ware added the comment: > > Here's some pretty compelling evidence for a bad PYTHONHOME setting: > > C:\>set PYTHONHOME=C:\path\not\here > > C:\>py -3.5 > Fatal Python error: Py_Initialize: unable to load the file system codec > ImportError: No module named 'encodings' > > Current thread 0x1db4 (most recent call first): > > C:\>set PYTHONHOME=C:\Python27\ > > C:\>py -3.5 > Fatal Python error: Py_Initialize: unable to load the file system codec > File "C:\Python27\\lib\encodings\__init__.py", line 123 > raise CodecRegistryError,\ > ^ > SyntaxError: invalid syntax > > Current thread 0x0664 (most recent call first): > > C:\>set PYTHONHOME= > > C:\>py -3.5 > Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit > (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> > > -- > > ___ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue27054> > ___ -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27054> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27054] Python installation problem: No module named 'encodings'
Hugh C. Lauer added the comment: On a hunch, I uninstalled Python 3.5.1 and reinstalled it for the current user only, to see if it would make a difference in the association of the encodings in the Registry. There was no difference. The original error message still appears. Regards, Hugh C. Lauer Worcester Polytechnic Institute -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27054> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27054] Python installation problem: No module named 'encodings'
Hugh C. Lauer added the comment: Upon further investigation, I find lots of encodings in the folder C:\Program Files\Python35\Lib\encodings\ and lots of compiled encodings in the subfolder __pycache__ . Somehow, these are not being found by Python itself, or there is something missing from the installation. I investigated the registry. A search for "encodings" turns up lots of registry entries but none associated with Python. Regards, Hugh C. Lauer Worcester Polytechnic Institute -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27054> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27054] Python installation problem: No module named 'encodings'
New submission from Hugh C. Lauer: Hello, I am a university professor who regularly teaches classes in Python programming, particular to students who are NOT computer science majors. In preparing my course materials for next fall, I have been struggling with setting up a Python 3.5.1 environment on my Windows computer (similar to what most of my students will use). I continually get the error "Fatal Python error: Py_Initialize: unable to load the file system codec ImportError: No module named 'encodings'" This seems to happen with Python 3.5.1 as well as Python 3.5.0. Nothing related to Python works:- not Python itself, not pip. My platform is Windows 7 Enterprise, Service Pack 1. * I used the installation file "python-3.5.1-amd64.exe" downloaded from the official Python download site. * During installation, I selected "Add Python 3.5 to PATH" and "Customize installation". * Under "Advanced Options," I selected "Install for all users" I have tried various other installation options, and nothing is better. I also tried it on a Windows 10 platform. In that case, Python and IDLE are installed correctly, but I any attempt to use pip to add or install other packages fails with a different error. For pedagogical reasons, I prefer the simply Python-IDLE environment to the packages such as Miniconda3, but installing Miniconda3 did not help either. Am I missing something obvious? Regards, Hugh C. Lauer\ Department of Computer Science Worcester Polytechnic Institute Worcester, Massachusetts, USA -- messages: 265838 nosy: la...@wpi.edu priority: normal severity: normal status: open title: Python installation problem: No module named 'encodings' ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27054> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com