0

我正在尝试使用安装 wxpythonpython3 -m pip install wxpython的 HP x86 机器安装新的 Ubuntu18.04.3 LTS。我已经设置了一个 python 环境并拥有 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

有没有人对这里发生的事情以及如何解决有任何建议?

4

1 回答 1

0

上面错误信息中的python-config是指使用 Python 的开发工具包安装的脚本,而不是 Python 包。查看https://wxpython.org/blog/2017-08-17-builds-for-linux-with-pip/index.html以查找有关构建 pip 所需安装的系统包的信息wxPython。

于 2020-01-27T22:35:34.443 回答