Sep-13-2018, 04:43 PM
(Sep-13-2018, 05:04 AM)Gribouillis Wrote: 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 syntaxpython -m pip
. For example you can installlxml
with the command
instead of
Output:python -m pip install lxmlpip 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 use
in order to install it for python 3.
Output:python3 -m pip install lxml
Thank you.
what's the difference in this examle?
python3 -m pip install virtualenv
and
pip install virtualenv
Are they the same thing?