Questions tagged [python-config]

a command line utility that provide capability to link an user program with the system installed python

python-config is a command line utility that provide capability to link an user program with the system installed python.

Usage: /usr/bin/python-config [--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--help]

22 questions
11
votes
1 answer

Why `pyvenv` does not install `python-config`?

I have run into this under MacOS (10.11), but have seen the same problem under various Linuxes as well. I installed the "official" Python3 package, it goes into /Library/Frameworks/Python.framework/Versions/3.4. (Note: the examples below use Python…
András Aszódi
  • 8,948
  • 5
  • 48
  • 51
4
votes
0 answers

Error : python-config cannot be found in PATH

The following error prevents me from installing dbus-python via pip3: configure: error: cannot find python3.6-config or python-config in PATH python-config was installed via pip3 without an issue, and I thought this would put it in PATH (but it…
YSC
  • 75
  • 2
  • 10
4
votes
1 answer

Python configparser get all from a section and write to new file

how would one use python config parser to get every entry under a single section and write to a new file without actually specifying each entry for example how would I go about getting everything under section "testing" and write to a new file…
Ranga Sarin
  • 169
  • 1
  • 5
  • 14
3
votes
2 answers

Create a config file to hold values like username password url in python behave

I'm trying to create a config that holds information such as username password etc. I have created an ini file holding this: [DEFAULT] username: user password: pass I then have a config map class like: import configparser class ConfigSectionMap: …
Sam
  • 1,207
  • 4
  • 26
  • 50
2
votes
1 answer

possible BUG on python-config ?! it doesn't print the full path of when using --ldflags

$ python-config --ldflags -L/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -ldl -framework CoreFoundation -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python it prints Python.framework/Versions/2.7/Python and…
0x90
  • 39,472
  • 36
  • 165
  • 245
1
vote
1 answer

How to retrieve key, value from config.ini?

i want to read certain data from a config file as key,value i found below way to define the key value in config.ini [Section] value={"name":"John","id":"101"} but not seeing the way to parse this value as dictionary in python i actually need to…
Adhi cloud
  • 39
  • 6
1
vote
1 answer

Couldn't install pylint in Python2.7 and get not matched errors even install with the local setup.py

For the developing environment constrained I have to use Python2.7 in the Windows10. So I choose to install pylint as the linter I use in the Administrator Mode. pip install "pylint<2.0.0" But it only outputs as follows: WARNING: Retrying…
Bowen Peng
  • 1,635
  • 4
  • 21
  • 39
1
vote
0 answers

best practice on Python unittest configuration?

My goal is to create a GitHub repo with a module and unit tests that other developers can check out and work on, including running the unit tests. This module does PDF manipulation, so I need to provide some sample PDFs to test, plus paths for…
1
vote
1 answer

Python-Config installed but not found when installing wxPython in env

I am trying to install install wxpython using python3 -m pip install wxpython I have a HP x86 machine with a new install of Ubuntu18.04.3 LTS. I have setup a python env and have Python 3.6.9. when I run the above command in the environment I get …
Slotted
  • 11
  • 1
  • 4
1
vote
1 answer

Python UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3

I'm reading a config file in python getting sections and creating new config files for each section. However.. I'm getting a decode error because one of the strings contains Español=spain self.output_file.write( what.replace( " = ", "=", 1 )…
Ranga Sarin
  • 169
  • 1
  • 5
  • 14
1
vote
1 answer

Define a function head inside a conf file

I am using a dictionary/get construct as a switch case in Python. It looks similar to this one: def switch_function(pluginID, param): switcher = { 'someid': somefunction(param), } return switch_function.get(pluginID, None) However, i want to to…
Depa
  • 459
  • 8
  • 18
1
vote
1 answer

Enthought Canopy missing python-config

Enthought Canopy ships without placing python-config in the path and a homebrew formula I'm trying to install wants to rely on the answers it gets from python-config. How should I resolve this? Some answers I've considered: Is there a chance this…
Tim Smith
  • 6,127
  • 1
  • 26
  • 32
0
votes
0 answers

Error while using logging's config.fileConfig() using python 3.6, but it works using python 3.8

I am loading a file config in the python's logging module like this init.py from logging import getLogger, config def create_app(): config.fileConfig("logging.ini") logger = getLogger("app") ... Using python 3.8 it works fine, but…
0
votes
1 answer

How to change python-config version on ubuntu

I have installed python3.6 in my desktop which already had python3.5 and python2.7 inside. I change the default path for both python and python3 to python3.6 but it seems like python-config is still on python2.7 and python3-config is still on…
BWN133
  • 23
  • 3
0
votes
1 answer

python: how to change python-config into my current python version

My question is that, if I run which python it returns /opt/anaconda3/bin/python However, If I run which python-config It returns /usr/bin/python-config which is the built-in python 2.7 in macbook. How can I change the config into the current…
Nicolas H
  • 535
  • 3
  • 13
1
2