我在这里所做的是尝试安装 mitosheet 并构建和链接 jupyter 所需的依赖项,以便我能够将 notebook.ipynb 或其他文件导出为 pdf。
当我运行(python3 -m pip install pyzmq --no-binary pyzmq)来安装pyzmq(忽略wheel)时,它成功地为pyzmq构建了wheel。
C:\Users\SHARV> **python3 -m pip install pyzmq --no-binary pyzmq**
*Defaulting to user installation because normal site-packages is not writeable*
Collecting pyzmq
Downloading pyzmq-25.1.2.tar.gz (1.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1.4/1.4 MB 3.1 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyzmq
Building wheel for pyzmq (pyproject.toml) ... done
Created wheel for pyzmq: filename=pyzmq-25.1.2-cp312-cp312-win_amd64.whl size=672485 sha256=6d778259a71e1a4bef8e32a98a63cbd82977e27fbbb8b97afaebb5041aae648d
Stored in directory: c:\users\sharv\appdata\local\pip\cache\wheels\b1\52\ef\086c3aa0c7f61df6c214d61fe7dad829198444748224f2603b
Successfully built pyzmq
Installing collected packages: pyzmq
Successfully installed pyzmq-25.1.2
但是失败了 python -m pip install mitosheet
C:\Users\SHARV> **python -m pip install mitosheet**
C:\\Program Files\\Python312\\include\\cpython/longintrepr.h(87): note: see declaration of '\_longobject'DEBUG EXT_SUFFIX '.cp312-win_amd64' '.cp312-win_amd64.pyd'
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
DEBUG EXT_SUFFIX '.cp312-win_amd64' '.cp312-win_amd64.pyd'
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
\[end of output\]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyzmq
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects
C:\\Users\\SHARV\>
我已经检查了 Visual studio 2019 和 Visual studio 2022。 cl.exe 存在。
根据我的理解,我已经安装并配置了为 pyzmq 构建 Wheel 所需的要求。我无法弄清楚为什么子进程仍然存在问题。
, Python 版本是 3.12 NBCONVERT 现已更新。 pandoc 也已安装。 MikTex 推出 Xelatex。
如有任何帮助,我们将不胜感激。
同样的问题 python 3.12。 _device.c 中粮阿肯