2

This question is related to this one and this one. I am trying to install and run docker(-compose) in a newly created python virtual environment:

$ mkdir temp_venv
$ cd temp_venv
$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip list
pip (8.1.2)
setuptools (21.2.2)
wheel (0.29.0)

docker-compose installs successfully through pip, but when I try to install docker the following error is thrown:

(venv) $ pip install docker
Collecting docker
  Could not find a version that satisfies the requirement docker (from versions: )
No matching distribution found for docker

Trying to install with the --pre flag set returns the same error. Also, when trying to run docker in venv the following error is given:

WARNING: The "bootstrap" service specifies a port on the host. If multiple containers for this service are created on a single host, the port will clash.
ERROR: Couldn't connect to Docker daemon. You might need to install Docker:

Installing docker-compose with pip2 gives the same error (the same goes for docker:

Collecting docker
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/docker/
  Could not find a version that satisfies the requirement docker (from versions: )
No matching distribution found for docker
). 
Matt S
  • 14,976
  • 6
  • 57
  • 76
Sebi
  • 4,262
  • 13
  • 60
  • 116
  • 3
    I think you're supposed to install docker from [here](https://docs.docker.com/engine/installation/) instead of using `pip`. If you mean to install `docker-py`, you could do `pip install docker-py`. – dazedconfused May 31 '16 at 15:06
  • http://stackoverflow.com/questions/32302379/could-not-find-a-version-that-satisfies-the-requirement-package – inbinder May 31 '16 at 15:07
  • 2
    This is the general error message for a package that don't exist, since docker is not a python package. Have you read the install doc on the docker site? – polku May 31 '16 at 15:12
  • I've seen it now; I confused docker with a python module. – Sebi May 31 '16 at 17:43

0 Answers0