Bonjour,
j'utilisais python 2.6 jusqu'à maintenant avec une librairie nommée "biopython" pour faire de la bioinformatique.
J'ai du installer python 2.7, ce qui fait que dans mon /usr/bin j'ai :
Le problème étant que dans python 2.6 j'arrive à importer ma libraire Biopython :Code:
1
2
3
4
5
6
7
8
9
10
11
12 ll /usr/bin/ | grep python lrwxrwxrwx 1 root root 58 2012-07-15 21:21 install-package -> ../share/python-support/install-package/install-package.py* lrwxrwxrwx 1 root root 23 2012-10-22 13:58 pdb2.6 -> ../lib/python2.6/pdb.py* lrwxrwxrwx 1 root root 23 2012-12-13 19:17 pdb3.1 -> ../lib/python3.1/pdb.py* lrwxrwxrwx 1 root root 9 2012-12-19 18:44 python -> python2.6* lrwxrwxrwx 1 root root 9 2012-02-03 16:55 python2 -> python2.6* -rwxr-xr-x 1 root root 2617584 2012-10-02 00:32 python2.6* -rwxr-xr-x 1 root root 1452 2012-10-02 00:32 python2.6-config* lrwxrwxrwx 1 root root 9 2012-12-13 19:17 python3 -> python3.1* -rwxr-xr-x 1 root root 2849768 2012-10-23 22:47 python3.1* lrwxrwxrwx 1 root root 16 2012-06-05 09:56 python-config -> python2.6-config* lrwxrwxrwx 1 root root 29 2012-02-03 16:55 pyversions -> ../share/python/pyversions.py*
mais dans python 2.7 je n'y arrive pas :Code:
1
2 >>> from Bio import SeqIO >>>
Que dois je fais pour que ma librairie fonctionnelle dans une version antérieure de python, le devienne également avec la version d'après ?Code:
1
2
3
4
5 >>> from Bio import SeqIO Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named Bio >>>
En remerciant tous les contributeurs de ce forum pour leur gentillesse d'aider les noobs comme moi !
M.