puppet-python
puppet-python copied to clipboard
Choosing python version when installing packages with pip
Hi,
I need to install packages which are only compatible with some versions of python.
pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.0-cp35-cp35m-linux_x86_64.whl -v
pip3 install torshvision
But on the target machines, there is multiple version of python installed that are needed for others purposes. Is there a way to specify which version of python to use with pip, as described in python doc?
https://docs.python.org/3/installing/index.html#work-with-multiple-versions-of-python-installed-in-parallel
Thanks, Guillaume
Are you using virtual environments for managing different python versions?