khmer
khmer copied to clipboard
No local packages or download links found for pytest-runner
Hi,
When I use the command 'pip install khmer', I got the error message:
Collecting khmer
Using cached https://files.pythonhosted.org/packages/40/5a/328d310361d98bb2f29361128eaa2493f44b51997d6837c72f1766c4ec7b/khmer-2.1.1-cp27-cp27mu-manylinux1_x86_64.whl
Collecting bz2file (from khmer)
Using cached https://files.pythonhosted.org/packages/61/39/122222b5e85cd41c391b68a99ee296584b2a2d1d233e7ee32b4532384f2d/bz2file-0.98.tar.gz
Collecting screed>=1.0 (from khmer)
Using cached https://files.pythonhosted.org/packages/e7/7a/b5f16a9861ac497b346b2f5205e8dc35103eeba1e6fdffa114c47e0b35ba/screed-1.0.tar.gz
Complete output from command python setup.py egg_info:
/HOME/.local/lib/python2.7/site-packages/distribute-0.6.10-py2.7.egg/setuptools/command/install_scripts.py:3: UserWarning: Module backports was already imported from None, but /HOME/packages/anaconda2/lib/python2.7/site-packages is being added to sys.path
from pkg_resources import Distribution, PathMetadata, ensure_directory
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
No local packages or download links found for pytest-runner
Traceback (most recent call last):
File "
I have already installed pytest-runner-4.2, but it seems this package couldn't find it. I downloaded source code from github and tried to install it according to "python setup.py install", but I got a error : File "setup.py", line 74 file=sys.stderr) ^ SyntaxError: invalid syntax
what should I do? thanks
Hi @LujingF!
I've had problems with pytest-runner as well, and I think the version currently hard-coded in the setup.py file is problematic. I would like to submit a fix for this soon.
But I think your problem might be even simpler than that. It appears that you're trying to install khmer in a Python 2.7 environment. khmer no longer supports Python version 2: you'll need to make sure Python 3 is installed and that you're installing khmer to your Python 3 distribution (for example, with pip3 or with a virtual environment). The latest version of our installation docs cover this in detail.
Please let us know if you continue to run into problems.