How to install imapclient

2019-03-07 01:51发布

问题:

I’m trying to use the IMAP client library:

https://imapclient.readthedocs.org/en/stable/

I download the zip:

https://pypi.python.org/pypi/IMAPClient/0.13

Next I used windows command prompt and pip to install:

Ran: pip install imapclient

This placed/created a director in my site-pages directory C:\Python27\ArcGIS10.2\Lib\site-packages\IMAPClient-0.13-py2.7.egg

which I can open and find all the files, but I can’t open IDE and import imapclient or run the examples without getting the error:

ImportError: No module named imapclient

Any ideas, what I need to do?

回答1:

You'll need to make sure your PYTHONPATH is set properly: https://docs.python.org/2/using/windows.html#configuring-python