puppet-python icon indicating copy to clipboard operation
puppet-python copied to clipboard

Choosing python version when installing packages with pip

Open guillaume-ferry opened this issue 6 years ago • 1 comments

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

guillaume-ferry avatar Jan 24 '19 15:01 guillaume-ferry

Are you using virtual environments for managing different python versions?

danquack avatar Feb 02 '19 23:02 danquack