V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
monetto
V2EX  ›  Python

Python PIP 安装时 怎么对自定义头文件进行链接

  •  
  •   monetto · 2021-12-03 14:35:59 +08:00 · 1235 次点击
    这是一个创建于 867 天前的主题,其中的信息可能已经有所发展或是发生改变。

    PIP 在安装 A 时,需要编译安装,但是 A 又需要某些 .h , 这些 .h 在其他机器上有,本机没有,于是想把它复制到本机。但是 在执行 Clang 编译的时候,怎么才能让 Clang 知道这些 .h 的存在呢?

    1 条回复    2021-12-03 19:34:02 +08:00
    frostming
        1
    frostming  
       2021-12-03 19:34:02 +08:00   ❤️ 2
    export CPPFLAGS='-I/path/to/include' LDFLAGS='-L/path/to/lib'
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2248 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 16:13 · PVG 00:13 · LAX 09:13 · JFK 12:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.