I am trying to run a python script using :-
python scriptname.py "someoptions"
When I do this it throws an error saying
Traceback (most recent call last):
File "scriptname.py", line 7, in <module>
import pymssql
ImportError: No module named pymssql
I am on a mac.Can someone tell me how can I get this package ? and where do i need to put it to?
This is the error that pip is showing :-
> 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 "<string>", line 14, in <module>
> File "/private/tmp/my_new_env/build/pymssql/setup.py", line 41, in <module>
> 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 "<string>", line 14, in <module>
>
> File "/private/tmp/my_new_env/build/pymssql/setup.py", line 41, in
> <module>
>
> from Cython.Distutils import build_ext as _build_ext
>
> ImportError: No module named Cython.Distutils
http://code.google.com/p/pymssql/
The easiest way to install it is probably via pip (or the older easy_install).