“ImportError: DLL load failed” when trying to import pymssql on Windows

前端 未结 3 777
囚心锁ツ
囚心锁ツ 2020-12-07 03:38

I\'m trying to use the example code from here:

http://www.pymssql.org/en/latest/pymssql_examples.html

I installed the pymmsql module using pip.

3条回答
  •  無奈伤痛
    2020-12-07 04:09

    Nowadays I recommend just downloading the version you need from here https://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql and then installing via below steps.

    1. Download the version to want to place on disk, can be Downloads or anywhere you want. I downloaded pymssql-2.1.4-cp38-cp38-win_amd64.whl because I'm using Python 3.8 on Windows 10 64 bit.
    2. Navigate to directory where you downloaded or move the file...
    3. pip install

    I didn't have to install anything extra, worked right out of the box.

提交回复
热议问题