繁体   English   中英

如果它们是另一个 package 的先决条件,如何在 windows 中安装 *.dev 包?

[英]How to install *.dev packages in windows if they are a prerequisite for another package?

在我的 Windows 计算机中设置另一个私有 package 之前,我需要安装 python3.7-dev 和 libspatialindex-dev。

我有如何在 Linux 中安装的说明(例如,见下文):
sudo apt-get install -y libspatialindex-dev

我在 Windows 中找到了 conda 的替代方法(见下文):
conda install -c conda-forge libspatialindex=1.9.3

I know that you can only get Linux commands like "sudo apt" via WSL or Chocolatey or like a linux virtual machine etc. ( In Git for Windows Bash, how to install "get-apt" and "sudo" and all those basic commands ? , https://superuser.com/questions/947220/how-to-install-packages-apt-get-install-in-windows )但我也读到 Windows 不需要这些 '*.dev' 包因为它带有您在上面看到的替代安装方法。 如何获得 windows 的 python-dev?

有人可以向我解释我是否应该设置 WSL、Chocolatey 等,或者替代方法是否可以? 如果替代方法不正确,linux package 安装软件应该我 select 作为最容易设置? 提前致谢。

设置 WSL 很可能无法让您在 windows 上设置构建工作流。

获取库的dev版本意味着除了链接到这些库所需的已编译库之外,还拥有必要的 header 文件。 对于您正在寻找的特定库,要实现这一点会有所不同。

Specific to your question however, since you mentioned that you have conda, the python headers should already reside in the \include folder in your anaconda folder and python.dll should be in the main folder.

命令

conda install -c conda-forge libspatialindex=1.9.3

在您的 anaconda 文件夹中的Library\include下安装您需要的头文件。 因此,通过相应地在构建管道中设置包含目录,您应该能够编译您的程序

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM