4
$\begingroup$

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.
$\endgroup$
1
  • $\begingroup$ 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). $\endgroup$ Aug 9, 2017 at 16:26

1 Answer 1

6
$\begingroup$

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.

$\endgroup$
4
  • 2
    $\begingroup$ 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? $\endgroup$
    – terdon
    Aug 9, 2017 at 16:42
  • 2
    $\begingroup$ @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. $\endgroup$ Aug 9, 2017 at 17:02
  • 1
    $\begingroup$ 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. $\endgroup$
    – terdon
    Aug 9, 2017 at 17:31
  • 2
    $\begingroup$ @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. $\endgroup$ Aug 9, 2017 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.