2

I have attempted to install biopython for python2.7 on a cluster of machines.

I have a tonne of scripts that are written in python2.7 and I need to use biopython, but the refactoring of the scripts is more hassle than it is worth - so I thought it would be easier to use an install workaround.

pip install python2 biopython

and

pip install python2.7 biopython

and all variations of these calls do nothing.

They tell me everything is satisfied because there is an installation of biopython for python3.4.

Does anyone know this installation command?

1 Answer 1

1

Since version 0.8 you can use the following:

$ pip-2.5 install package
$ pip-2.6 install package
$ pip-2.7 install package

Also see this question: pip: dealing with multiple Python versions?

Sign up to request clarification or add additional context in comments.

14 Comments

Sorry I then tried 'pip2.7 install biopython' - and I receive that the requirements are satisfied - then i try to import Bio and it fails
I am... I dont know what else I can say. On my local machine these commands work perfectly and I have biopython working - on a cluster machine they dont execute
did you try reinstall the package
can you try: python -m pip install biopython. Maybe this installs it to whatever python you are using.
andi - thanks for your input. However I dont want to install biopython for my current version as my original post states - I want to install biopython to work an earlier version of python as I have hundreds of scripts (thousands and thousands of lines of code) that are incompatible with python3.2 so I want to ensure that biopython runs well for python2.7 (as it is meant to be supported with python2.7 anyway)
|

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.