0

I am writing Python3 and we have a database(mssql). I have some strings and want to put these strings into db table. But I could not handle connecting to DB. Some people suggested using pyodbc but my python version is 3.4.4 and pyodbc is not supporting it. I am writing my codes in PyCharm IDE and I am not using anyother IDE such as Visual Studio, Eclipse, etc. DB is created and the table exists.

  • Which programs or libraries do I need?
  • Which lines that I should write to code (like import pypmssql)

Language: Python3 version 3.4.4 IDE: PyCharm latest version DB: MSSQL

1

1 Answer 1

1

If you work on a Linux distribution, try to install pip3 (python dependency manager for python 3) then run

pip install pymssql

Then read the library documention to learn how to use it at http://pymssql.org/en/latest/

Sign up to request clarification or add additional context in comments.

6 Comments

Connection is timed out :( It is probably due to my network access privileges. Is there anyother way ? I tried to download it manually from pypi.python.org/pypi/pymssql/2.1.2#downloads but I do not know how to install the downloaded md5 file
Try to download the whl file from pypi.python.org/pypi/pymssql/2.1.2#downloads then run pip3 install pymssql-2.1.2-cp27-cp27m-win32.whl
pymssql-2.1.2-cp34-cp34m-win32.whl is not a supported wheel on this platform.
Try to download another file format (you have downloaded the win32 version)
I tried all of them in pypi.python.org/pypi/pymssql/2.1.2#downloads but not working :( always saying wheel is not supported on this platform
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.