我正在尝试使用以下命令在jupyter中安装psqlparse软件包:
pip install -U psqlparse==1.0rc7
但是有一个错误,有没有办法我可以使用jupyter或conda安装这个包?
此外,如果有帮助的话,这个包的1. 0 rc7版本文件和setup.py文件在我的系统中是可用的。
Collecting psqlparse==1.0rc7
Using cached https://files.pythonhosted.org/packages/74/9e/b919842a2cfc27a212a98149c6449cedfbf388a370257af7504651925016/psqlparse-1.0rc7.tar.gz
Requirement already satisfied, skipping upgrade: six in e:\anaconda\lib\site-packages (from psqlparse==1.0rc7) (1.12.0)
Building wheels for collected packages: psqlparse
Building wheel for psqlparse (setup.py): started
Building wheel for psqlparse (setup.py): finished with status 'error'
Complete output from command E:\Anaconda\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Soha\\AppData\\Local\\Temp\\pip-install-g1sf8ekh\\psqlparse\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Soha\AppData\Local\Temp\pip-wheel-mla477je --python-tag cp37:
E:\Anaconda\lib\site-packages\setuptools\dist.py:475: UserWarning: Normalizing '1.0-rc7' to '1.0rc7'
normalized_version,
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\psqlparse
copying psqlparse\exceptions.py -> build\lib.win-amd64-3.7\psqlparse
copying psqlparse\__init__.py -> build\lib.win-amd64-3.7\psqlparse
creating build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\nodes.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\parsenodes.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\primnodes.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\utils.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\value.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\__init__.py -> build\lib.win-amd64-3.7\psqlparse\nodes
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
Running setup.py clean for psqlparse
Failed to build psqlparse
Installing collected packages: psqlparse
Running setup.py install for psqlparse: started
Running setup.py install for psqlparse: finished with status 'error'
Complete output from command E:\Anaconda\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Soha\\AppData\\Local\\Temp\\pip-install-g1sf8ekh\\psqlparse\\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\Soha\AppData\Local\Temp\pip-record-woylvw9h\install-record.txt --single-version-externally-managed --compile:
E:\Anaconda\lib\site-packages\setuptools\dist.py:475: UserWarning: Normalizing '1.0-rc7' to '1.0rc7'
normalized_version,
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\psqlparse
copying psqlparse\exceptions.py -> build\lib.win-amd64-3.7\psqlparse
copying psqlparse\__init__.py -> build\lib.win-amd64-3.7\psqlparse
creating build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\nodes.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\parsenodes.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\primnodes.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\utils.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\value.py -> build\lib.win-amd64-3.7\psqlparse\nodes
copying psqlparse\nodes\__init__.py -> build\lib.win-amd64-3.7\psqlparse\nodes
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
Note: you may need to restart the kernel to use updated packages.
Failed building wheel for psqlparse
Command "E:\Anaconda\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Soha\\AppData\\Local\\Temp\\pip-install-g1sf8ekh\\psqlparse\\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\Soha\AppData\Local\Temp\pip-record-woylvw9h\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Soha\AppData\Local\Temp\pip-install-g1sf8ekh\psqlparse\
1条答案
按热度按时间pprl5pva1#
不要。根据README,
psqlparse
已经不再维护了,上一个版本是3年前的。它也是一个rc版本,所以可能有什么东西没有完成。找到另一个包裹。