简体   繁体   中英

Buildout and Pythonbrew

I am using Python 2.7.2 with Pythonbrew and I want to use buildout for some of my projects, that include some packages that need to be compiled with the C extensions.

However, when building it, it seems buildout cannot find the include folder located in ~/.pythonbrew/pythons/Python-2.7.2/include . If I try a simple pip install simplejson , then it works. So it seems buildout is looking in default include locations.

Is there a parameter config that I can set up in buildout for this? Or an environment variable (I am under Centos 6.3)?

Related: buildout - using different python version but I prefer to keep my pythonbrew install as I may have different scenarii on other workstations.

对于它的价值(如果它可以帮助任何人),我可以通过使用带有Pythonbrew的共享库编译Python来解决我的问题。

pythonbrew install --configure="--enable-shared" 2.7.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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