Sep-13-2018, 05:04 AM
(This post was last modified: Sep-13-2018, 05:05 AM by Gribouillis.)
Yes it is true on systems such as linux which have python 2 and python 3 installed, but you can invoke pip through the python interpreter by using the syntax
python -m pip
. For example you can install lxml
with the commandOutput:python -m pip install lxml
instead of pip install lxml
. If 'python' is the command for python 2, this installs lxml for python 2. If 'python3' is the command for python 3, you can useOutput:python3 -m pip install lxml
in order to install it for python 3.