4

I am trying to install chromosomer but I fail. Can anybody help me, please?

$ pip install chromosomer

Collecting chromosomer
  Could not find a version that satisfies the requirement chromosomer (from versions: )
No matching distribution found for chromosomer

The output python:

$ python

Python 3.6.0 |Anaconda custom (x86_64)| (default, Dec 23 2016, 13:19:00) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
terdon
  • 10,071
  • 5
  • 22
  • 48
Biomagician
  • 2,459
  • 16
  • 30
  • The command line output from pip isn’t relevant for the question, I’ve thus removed. pip --version would have been more relevant. Also, be sure to read the formatting help for questions, especially the part about preformatted text (which applies to console output). – Konrad Rudolph Aug 09 '17 at 16:26

1 Answers1

6

Chromosomer only exists for Python 2. You should thus be able to install it via

pip2 install chromosomer

But:

Your Python installation is a bit screwed up: there are Python 2 and Python 3, which are unfortunately incompatible.

On your system python and pip seem to be aliases for Python 3, which I’d strongly recommend against (lots of tools will break). Instead, they should alias Python 2. Python 3 should be invoked via python3/pip3.

Konrad Rudolph
  • 4,845
  • 14
  • 45
  • 2
    That's a pretty sweeping statement. The command python defaults to python3 on my two Arch systems and various Ubuntu boxes we use at work and I've never had issues with it. What makes you say that using python2 as the default is better? And on what systems? – terdon Aug 09 '17 at 16:42
  • 2
    @terdon It's from a PEP recommendation. And failing to do so, while not catastrophic, definitely breaks many scripts that assume python = Python 2. Not a fan of Arch's/Ubuntu's decision to ignore that unnecessarily. – Konrad Rudolph Aug 09 '17 at 17:02
  • 1
    Well, I'd argue that using a shebang line calling python instead of python[23] is a very bad design decision since the python devs, in their infinite wisdom, made the two versions incompatible. Either way, your advice is dangerous since, presumably, the OP has a working system with python3 as the default and changing that will break lots of tools while leaving it as is will not. – terdon Aug 09 '17 at 17:31
  • 2
    @terdon You realise that there are Python scripts that predate the existence of Python 3, right? The all will, by necessity, have python in their shebang line. And fixing the system shouldn't break anything but, yes, it will require reinstalling all modules. – Konrad Rudolph Aug 09 '17 at 17:38