我正在尝试使用以下命令运行 python 脚本:-
python scriptname.py“一些选项”
当我这样做时,它会抛出一个错误说
Traceback (most recent call last):
File "scriptname.py", line 7, in <module>
import pymssql
ImportError: No module named pymssql
我在 Mac 上。有人可以告诉我如何获得这个包吗?我需要把它放在哪里?
这是 pip 显示的错误:-
> 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