Python pip安装我们的SQL";找不到指定的文件";
当我尝试使用pip安装我们的SQL时,我遇到了以下错误Python pip安装我们的SQL";找不到指定的文件";,python,pip,oursql,Python,Pip,Oursql,当我尝试使用pip安装我们的SQL时,我遇到了以下错误 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
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)
您需要编译oursql
,因为作者忘记提交生成的模块
随着我们SQL的作者似乎消失了,我提交了丢失的生成文件并应用了它。我怀疑我是否会进一步开发它,但我可以接受请求。尝试安装cython:
pip安装cython-oursql