Manish
Manish

Reputation: 1769

Unable to install pymssql

I was trying to install pymssql .For this I use pip and installed it using a virtual environment according to instructions mentioned here But when I say

(my_new_env)tmp> pip install pymssql

I see the following errors :

Downloading pymssql-2.0.0b1-dev-20111019.tar.gz (5.0Mb): 5.0Mb downloaded Running setup.py egg_info for package pymssql
Traceback (most recent call last): File "", line 14, in File "/private/tmp/my_new_env/build/pymssql/setup.py", line 41, in from Cython.Distutils import build_ext as _build_ext ImportError: No module named Cython.Distutils Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 14, in

File "/private/tmp/my_new_env/build/pymssql/setup.py", line 41, in

from Cython.Distutils import build_ext as _build_ext

ImportError: No module named Cython.Distutils

I googled a bit for this issue.Do I have to install Cython or something? If so some instructions in this direction would be helpful. Thanks!

Upvotes: 18

Views: 13114

Answers (1)

joshcartme
joshcartme

Reputation: 2747

You need to install Cython. It is available on PyPi so you may be able to do:

pip install cython

That may not work on windows (I really don't know), but if it doesn't check out this page: http://cython.org/#download

On that page you will see a link to windows installers. Pick the right one and you should be good to go.

Upvotes: 20

Related Questions