我正在尝试使用python3 -m pip install wxpython安装install wxpython,我有一台HP x86机器,上面安装了新的Ubuntu18.04.3LTS。我已经设置了一个python env,并安装了Python 3.6.9。当我在环境中运行上面的命令时,我得到
`python-config : not found
Checking for library python3.6m in LIBDIR : not found
Checking for library python3.6m in python_LIBPL : yes
Checking for header Python.h : Distutils not installed? Broken python installation? Get python-config now!我已经安装了python:
python3 -m pip install python-config
Requirement already satisfied: python-config in ./PrintrunEnv/lib/python3.6/site-packages并检查了路径:
>>> import sys
>>> for p in sys.path:
... print(p)
...
/usr/lib/python36.zip
/usr/lib/python3.6
/usr/lib/python3.6/lib-dynload
/home/colin/Printrun/PrintrunEnv/lib/python3.6/site-packages有没有人对这里发生了什么以及如何修复有什么建议?
发布于 2020-01-28 06:35:34
上面错误消息中的python-config指的是随Python的开发工具包一起安装的脚本,而不是Python包。查看https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/index.html,查找有关为了让pip构建wxPython而需要安装的系统包的信息。
https://stackoverflow.com/questions/59890082
复制相似问题