首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何在jupyter中安装psqlparse包?

如何在jupyter中安装psqlparse包?
EN

Stack Overflow用户
提问于 2022-10-27 20:21:43
回答 1查看 28关注 0票数 -1

我试图使用以下命令在jupyter中安装psql解译包:

代码语言:javascript
运行
复制
pip install -U psqlparse==1.0rc7

但这是个错误。有什么方法可以用jupyter或conda安装这个包吗?

此外,这个包的版本1.0rc7文件和setup.py文件可以在我的系统中使用,如果它有帮助的话。

代码语言:javascript
运行
复制
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\
EN

回答 1

Stack Overflow用户

发布于 2022-10-27 20:27:41

不要。根据自述,psqlparse不再被维护,最后一次发布是3年前。这也是一个rc版本,所以可能还有一些东西未完成。

再找一个包裹。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74227898

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档