pip 安装我们的 SQL "Cannot find the file specified"

pip install ourSQL "Cannot find the file specified"

当我尝试使用pip安装oursql时我运行进入以下错误

 C:\Users\user>pip install oursql
    Collecting oursql
      Using cached https://files.pythonhosted.org/packages/8c/88/9f53a314a2af6f56c0a1249c5673ee384b85dc791bac5c1228772ced3502/oursql-0.9.3.2.tar.gz
    Installing collected packages: oursql
      Running setup.py install for oursql ... error
        Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\users\user\appdata\local\temp\pip-install-l7rkx0\oursql\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\user\appdata\local\temp\pip-record-yke4zh\install-record.txt --single-version-externally-managed --compile:
        cython not found, using previously-cython'd .c file.
        running install
        running build
        running build_ext
        error: [Error 2] The system cannot find the file specified

        ----------------------------------------
    Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\users\user\appdata\local\temp\pip-install-l7rkx0\oursql\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\user\appdata\local\temp\pip-record-yke4zh\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\user\appdata\local\temp\pip-install-l7rkx0\oursql\

我 运行 在尝试从源安装时遇到同样的错误

C:\Users\user\Downloads\oursql-0.9.3.1>python setup.py install
cython not found, using previously-cython'd .c file.
running install
running build
running build_ext
error: [Error 2] The system cannot find the file specified

我试过 运行以管理员身份运行 cmd,但出现了同样的错误。如有任何帮助,我们将不胜感激。

(Windows 10, Python 2.7)

https://github.com/python-oursql/oursql/issues/18

您需要 Cython 来编译 oursql 因为作者忘记提交生成的模块。

作为oursql的作者我好像不见了forked the module, committed missed generated files and applied pull requests。我怀疑我会进一步开发它,但我可以接受拉取请求。