Dennis,
Thank you for your response. The following is the results of what you pointed oit. Could you find out how to cope with this situation ? -=-=-=- Microsoft Windows [Version 10.0.16299.371] (c) 2017 Microsoft Corporation. All rights reserved. C:\Users\N.Morihira>echo %path% C:\Users\N.Morihira\AppData\Local\Programs\Python\Python36-32\Scripts\; C:\Users\N.Morihira\AppData\Local\Programs\Python\Python36-32\; <SNIP IRRELEVANT LINES> C:\Users\N.Morihira>python Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys File "<stdin>", line 1 print sys.path ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(sys.path)? ['', 'C:\\Users\\N.Morihira\\AppData\\Local\\Programs\\Python\\Python36-32\\python36.zip', 'C:\\Users\\N.Morihira\\AppData\\Local\\Programs\\Python\\Python36-32\\DLLs’, 'C:\\Users\\N.Morihira\\AppData\\Local\\Programs\\Python\\Python36-32\\lib', 'C:\\Users\\N.Morihira\\AppData\\Local\\Programs\\Python\\Python36-32', 'C:\\Users\\N.Morihira\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages'] >>> -=-=-=- Best Regards, --------------------- Naoki Morihira TEL: 01181-90-6460-6265 --------------------- ________________________________ 差出人: Python-list <python-list-bounces+naoki_morihira=outlook...@python.org> が Dennis Lee Bieber <wlfr...@ix.netcom.com> の代理で送信 送信日時: Wednesday, April 18, 2018 8:12:36 AM 宛先: python-list@python.org 件名: Re: Python Import Impossibility On Tue, 17 Apr 2018 14:08:49 +0000, ?? ?? <naoki_morih...@outlook.jp> declaimed the following: > > >I deleted ?C:\Python27?, and executed in Windows Command prompt screen, But did you UNINSTALL it? If you didn't, there may be remnants left in the registry... > >?C:Users/N.Morihira>py -m install openpyxl?, > >But the following message was displayed > > * Requirement already satisfied: openpyxl in > c:\users\n.morihira\anaconda3\lib\site-packages > * Requirement already satisfied: jdcal in > c:\users\n.morihira\anaconda3\lib\site-packages (from openpyxl) > * Requirement already satisfied: et_xmlfile in > c:\users\n.morihira\anaconda3\lib\site-packages (from openpyxl), > > >And it also displays the following message in Python3.6.4 Shell screen. >>>> import openpyxl > >Traceback (most recent call last): > > File "<pyshell#3>", line 1, in <module> > That (pyshell#3) seems to imply you are using some third-party program as your "shell"... A direct OS shell would report <stdin>. What do you get if you open a proper OS command-line shell and type "python" -- as in -=-=-=- Microsoft Windows [Version 10.0.16299.371] (c) 2017 Microsoft Corporation. All rights reserved. C:\Users\Wulfraed>echo %path% C:\Python27\;C:\Python27\Scripts\;C:\Python27\Tools\scripts\;C:\WINDOWS\system32;C:\WINDOWS; <SNIP IRRELEVANT LINES> C:\Users\Wulfraed> C:\Users\Wulfraed>python ActivePython 2.7.13.2716 (ActiveState Software Inc.) based on Python 2.7.13 (default, Jun 26 2017, 14:28:43) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.path ['', 'C:\\Python27\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\win32', 'C:\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\Python27\\lib\\site-packages\\Pythonwin'] >>> -=-=-=- {Yes, I'm configured to use Python 2.7 as the default, and that is the version on my system (not Python) PATH -- it is also not installed as a single-user application} -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.com HTTP://wlfraed.home.netcom.com/ -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list