I am trying to install docker python in a virtualenv. My system is Centos 7, python 2.7.5. I can install in the system site-packages ( $sudo pip install python) just not in a virtualenv.
$ virtualenv testdocker
$ cd testdocker
$ source ./bin/activate
$ pip install docker
Downloading/unpacking docker
Downloading docker-2.2.1.tar.gz (147kB): 147kB downloaded
Running setup.py egg_info for package docker
error in docker setup command: Invalid environment marker: python_version < "3.5"
Complete output from command python setup.py egg_info:
error in docker setup command: Invalid environment marker: python_version < "3.5"
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/jmcdowall/tmp/testdocker/build/docker
Storing complete log in .......
pip.txt
I upgraded/installed setup tools into my virtualenv and the problem went away. The version of setup tools installed is 35.0.2.py2.7
Most helpful comment
I upgraded/installed setup tools into my virtualenv and the problem went away. The version of setup tools installed is 35.0.2.py2.7