1
我試圖運行使用python腳本: -我在哪裏可以得到pymssql的Python腳本
蟒蛇scriptname.py「someoptions」
當我做到這一點,它拋出一個錯誤說
Traceback (most recent call last):
File "scriptname.py", line 7, in <module>
import pymssql
ImportError: No module named pymssql
我在一個mac.Can有人告訴我如何得到這個包?我需要把它放到哪裏?
這是錯誤正在顯示畫中畫: -
> 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
@ Amber-我正在使用pip來安裝pymssql.I使用虛擬env方法,但它給了我這個錯誤(修改了OP)。你有任何想法如何解決這個問題嗎? – Manish 2012-04-11 00:39:03
看起來它需要Cython。請參閱http://cython.org/ – Amber 2012-04-11 03:08:02