1.问题:pycharm2.7.3无法import pyperclip模块,已经从https://pypi.python.org/pypi/...下载安装过pyperclip-1.5.27,但是仍然无法导入
2.代码:
import re import pyperclip phoneRegex = re.compile(r'''( (\d{3}|\(\d{3}\))? # area code (\s|-|\.)? # (\d{3}) (\s|-|\.) (\d{4}) (\s*(ext|x|ext.)\s*(\d{2,5}))? )''',re.VERBOSE)
3.报错信息:
ImportError: No module named pyperclip
4.截图:
pip install pyperclip
Are you using different python versions, and one version does not have this module installed?