Hypothesis: "setuptools is too old"

Created on 19 Apr 2018  路  2Comments  路  Source: HypothesisWorks/hypothesis

virtualenv is 15.2.0 (newest)

(python3.6.3)ralf@ark:~/hypothesis/hypothesis-python> python setup.py install
setup.py:39: UserWarning: This version of setuptools is too old to correctly store conditional dependencies in binary wheels.  For more info, see:  https://hynek.me/articles/conditional-python-dependencies/
  'This version of setuptools is too old to correctly store '
/home/ralf/.pyenv/versions/3.6.3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
  warnings.warn(msg)
error in hypothesis setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in enum34; python_version=="2.7" at ; python_version=="2.7"

Most helpful comment

When you create virtual environment, always do inside of it:

pip install --upgrade pip setuptools

to avoid any issues like this. Because virtualenv & co ships bundled versions on those which are obliviously out of dated.

Also, for Python 3.4+ use builtin venv module instead of virtualenv - it's more modern:

python3.6 -m venv <path-to-virtual-env>

All 2 comments

When you create virtual environment, always do inside of it:

pip install --upgrade pip setuptools

to avoid any issues like this. Because virtualenv & co ships bundled versions on those which are obliviously out of dated.

Also, for Python 3.4+ use builtin venv module instead of virtualenv - it's more modern:

python3.6 -m venv <path-to-virtual-env>

Thanks.

Was this page helpful?
0 / 5 - 0 ratings