我正在尝试为我的程序安装pymssql模块。我在PyCharm Community Edition 2018.1.2上使用Python 3.6.5。我在网上找到了一个教程并遵循了它,但是当我使用时:
pip install pymssql
(请记住,这不是来自Python控制台;我正在尝试通过设置安装软件包),出现此错误:
Error: Traceback (most recent call last):
File "C:\Users\eread\PyCharm Community Edition 2018.1.2\helpers\packaging_tool.py", line 73, in run_pip
runpy.run_module(module_name, run_name='__main__', alter_sys=True)
File "C:\Users\eread\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 201, in run_module
mod_name, mod_spec, code = _get_module_details(mod_name)
File "C:\Users\eread\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "C:\Users\eread\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "C:\Users\eread.COLONIALMILLS\Desktop\PycharmProjects\SoftwareScanner\SoftwareScanner\venv\lib\site-packages\pip\__init__.py", line 3, in <module>
from . import ssl_match_hostname
ImportError: cannot import name 'ssl_match_hostname'