我试图使用以下命令在jupyter中安装psql解译包:
pip install -U psqlparse==1.0rc7
但这是个错误。有什么方法可以用jupyter或conda安装这个包吗?
此外,这个包的版本1.0rc7文件和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\
发布于 2022-10-27 20:27:41
不要。根据自述,psqlparse
不再被维护,最后一次发布是3年前。这也是一个rc版本,所以可能还有一些东西未完成。
再找一个包裹。
https://stackoverflow.com/questions/74227898
复制相似问题