Python Import Impossibility

森平 直樹 naoki_morihira at outlook.jp
Sat Apr 21 23:16:05 EDT 2018


Dennis,

Could you tell me how to set the path for working derectory in Python ?

Best Regards,
---------------------
Naoki Morihira
TEL: 01181-90-6460-6265
---------------------

________________________________
差出人: 森平 直樹 <naoki_morihira at outlook.jp>
送信日時: Saturday, April 21, 2018 7:57:23 PM
宛先: Dennis Lee Bieber; python-list at python.org
件名: RE: Python Import Impossibility


Dennis,



Thank you very much !

Based on your suggestion, I uninstalled Anaconda and tried installing openpyxl again.

After that, I finally found that it was installed correctly.

(I confirmed that ‘import openpyxl’ has no error message. )



I deeply appreciate your cooperation.



Best Regards,

---------------------
Naoki Morihira
TEL: 01181-90-6460-6265
---------------------



________________________________
差出人: Python-list <python-list-bounces+naoki_morihira=outlook.jp at python.org> が Dennis Lee Bieber <wlfraed at ix.netcom.com> の代理で送信
送信日時: Saturday, April 21, 2018 5:02:15 PM
宛先: python-list at python.org
件名: Re: Python Import Impossibility

On Sat, 21 Apr 2018 04:46:49 +0000, ?? ?? <naoki_morihira at outlook.jp>
declaimed the following:


>
>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)?
>
        My default Python is 2.7 -- "print" was a language statement, whereas
3.x made it a function.

>['',
>
>'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']
>

        Note that you are NOT RUNNING the "Anaconda" installation there...
yet...


>>?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),
>>

... this command IS running the "Anaconda" installation.


        You appear to have TWO Python installations -- both configured for
user-only mode. And somehow "py" accesses one, while "python" accesses the
other.



--
        Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed at ix.netcom.com    HTTP://wlfraed.home.netcom.com/

--
https://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list