像Linux一样,如何在Windows系统上的python-dev中安装软件包? [英] How can I manage to install packages within python-dev on windows systems just like that on Linux?

查看:717
本文介绍了像Linux一样,如何在Windows系统上的python-dev中安装软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我们只需使用以下命令就可以在Linux上简单地安装python-dev:

Actually, we can simply install python-dev on linux just use the following command:

sudo apt-get install python-dev

sudo apt-get install python-dev

因为python与Linux集成在一起.但是在窗户上却没有这样的运气.对于输入"pip install python-dev",在pypi.python.org上没有相应的软件包. 在Windows的Linux上通过"apt-get install python-dev"命令安装时,我应该安装哪些软件包以与之匹配?

since python is integrated with Linux. But no such luck on windows. For input "pip install python-dev", there is no corresponding package on pypi.python.org. What packages should I install to match those when installed by "apt-get install python-dev" command under Linux on Windows?

推荐答案

python-dev为Linux安装了头文件和库,从而允许您编写/编译扩展.

python-dev installs the headers and libraries for linux, allowing you to write / compile extensions.

在Windows中,默认情况下标准安装程序提供此功能.头文件位于$ installroot \ include目录中.链接库位于$ installroot \ libs中.

In windows, the standard installer provides this by default. The header files are in the $installroot\include directory. The link libraries are found in $installroot\libs.

例如,我已经将python 2.7安装到c:\ python27中.这意味着我的包含文件位于此处:c:\ python27 \ include.链接库位于c:\ python27 \ libs

For example I've installed python 2.7 into c:\python27. This means my include files are located here: c:\python27\include. And the link libraries are in c:\python27\libs

这篇关于像Linux一样,如何在Windows系统上的python-dev中安装软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆