Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
为什么我的 pxd 文件的 Cython cimport 不起作用?
我是 Cython 的新手 所以我可能会遗漏一些明显的东西 但我已经通读了文档并对此进行了一段时间的思考 我有一个 pyx我使用构建的文件setup py文件如下 from distutils core import setup from
python
Cython
distutils
cimport
从 PyPI 安装我的 sdist 会将文件放在意外的位置
我的问题是 当我将 Python 包上传到 PyPI 然后使用 pip 从那里安装它时 我的应用程序会崩溃 因为它将我的文件安装到与我简单地从本地 sdist 安装完全相同的包时完全不同的位置 从本地 sdist 安装会将文件放在我的系统上
python
setuptools
distutils
distribute
PyPI
Python 在 Mac OSX 上找不到 distutils_path
我一直在使用 virtualenv pip 进行 python 开发 我不确定发生了什么 但每当我尝试运行命令行工具或导入库时 我都会突然收到以下错误消息 Traceback most recent call last File Users
python
MacOS
virtualenv
distutils
覆盖 Python bdist Windows 安装程序的默认安装目录
是否可以在安装程序生成期间 或实际安装期间 指定 Python 模块的自定义路径 举例来说 假设我有 5 个模块 我使用以下命令为其生成安装程序 c gt python setup py bdist 所有内容都正确打包 但是当我安装时 我被
python
distutils
如何为一个 Python/C 扩展源文件指定不同的编译器标志?
我有一个使用 CPU 特定功能的 Python 扩展 如果可供使用的话 这是通过运行时检查来完成的 如果 硬件支持POPCNT指令 然后选择一个 我的内部循环的实现 如果 SSSE3 可用的话 它选择另一个 否则它会回退到通用版本 我的性能
python
setuppy
distutils
compilerflags
如何将 PyPi 依赖项添加到 DEB 包
我创建了一些python应用程序使用autobahn并使用它进行打包baazar builddeb 在 python setup py 文件中我添加了requires带有所有必需依赖项的标记 是否可以告诉 debian 软件包安装程序安装这
python
installation
distutils
deb
autobahn
如何使用 distutils 和/或 setuptools 在 mac os x 上创建 .dylib C 扩展?
我需要使用 distutils 和 或 setuptools 创建一个 C 扩展 它可以在运行时和编译时动态使用 用于不同的目的 这在 Linux 上不是问题 但在 OS X 上却是问题 默认情况下 distutils 在 OS X 上创建
MacOS
sharedlibraries
setuptools
distutils
pythoncextension
是否存在任何危险,例如使用 pip 的 --ignore-installed 标志导致冲突?
我无法找到 pip 的良好文档 ignore installed flag pip install help简单地说 忽略已安装的软件包 而是重新安装 除了系统上存在更多问题的副作用之外 因为安装的软件包在升级时不会被卸载 是否还有其他已知
python
python27
pip
distutils
如何使用 distutils 创建可执行的 .zip 文件?
Python 2 6 及更高版本能够直接执行 zip 文件 如果 zip 文件包含 main py文件位于 zip 存档的顶部 我想利用此功能来提供我正在开发的工具的预览版本 该工具除了将 zip 文件复制到磁盘之外不需要安装任何内容 是否
python
distutils
python26
python distutils:访问已编译扩展的名称
我使用 distutils 编译一个基于 swig 的扩展模块 python setup py build ext产生文件 my module ext cpython 32m so 来自一个 c and a i文件 这个名称似乎取决于所使用
python
distutils
pip freeze 捕获包名称,就好像它位于 python 索引站点上一样,但事实并非如此。需要完整路径
我从github安装了一个包 pip install e git http github com un33k django uuslug git egg django uuslug 然后我做了 pip freeze gt req txt I
python
freeze
setuptools
distutils
pip
Distutils:构建多个共享方法的 Python 扩展模块(用 Swig 编写)
我有四个 C 文件 A h A cpp B h B cpp A h 包含在 B cpp 中 A h pragma once void A A cpp include
python
c
SWIG
distutils
distribution、distutils、setuptools 和 distutils2 之间的区别?
情况 我正在尝试将开源库移植到 Python 3 SymPy http sympy org 如果有人想知道的话 所以 我需要跑2to3在为 Python 3 构建时自动进行 为此 我需要使用distribute 因此 我需要移植当前系统 根
python
packaging
setuptools
distutils
distribute
运行 python setup.py install 时强制编译器
有没有办法在运行时显式强制编译器构建 Cython 扩展python setup py install Where setup py的形式为 import os path import numpy as np from setuptools
python
conda
setuptools
setuppy
distutils
如何使用 setuptools/distutils 包含包数据?
使用 setuptools 时 我无法让安装程序拉入任何内容package data https pythonhosted org setuptools setuptools html including data files文件 我读过的
python
setuptools
distutils
Python distutils,如何获取要使用的编译器?
例如 我可以使用python setup py build compiler msvc or python setup py build compiler mingw32要不就python setup py build 在这种情况下默认编译
python
compilerconstruction
installation
distutils
Python 3.4:为 64 位 Windows 编译 cython 模块
我有一个 pyx 模块 我一直在尝试通过各种方式编译它以与 Windows 上的 64 位 python 3 4 一起使用 但没有成功 经过大量的试验和错误 它确实可以编译 python setup py build ext inplace
Windows
python3x
Cython
distutils
mingww64
使用setuptools将文件安装到任意位置
有没有办法使用 setuptools 将文件安装到任意位置 我用过数据文件 https pythonhosted org setuptools setuptools html including data files之前使用过 setupt
python
setuptools
distutils
使用 Cython 将 Python 链接到共享库
我正在尝试集成用以下语言编写的第三方库C和我的python应用程序使用Cython 我已经为测试编写了所有 python 代码 我无法找到设置此功能的示例 我有一个pyd pyx我手动创建的文件 第三方给了我一个header file h
python
c
Linker
Cython
distutils
setup.py 未安装 swig 扩展模块
我正在努力弄清楚如何将 swig 生成的包装器复制到与 swig 共享库相同的级别 考虑这个树结构 gitignore setup py hello src hello c hello h hello i test test hello p
python
SWIG
setuptools
distutils
1
2
3
4
»