Python LXML 安装问题

Python LXML installation issues

我似乎无法为 Python 安装 lxml 包。我在 Mac osx 10.14

我试过了:

sudo apt-get install python3-lxml
sudo port install py27-lxml
and pip install lxml

他们都输出:

apt-get:command not found, port: command not found, pip:command not found

我做错了什么?我安装了 Python 3.7

pip --version 给你什么? 尝试使用 pip3 而不是 pip

如:

pip3 install lxml