numpy - Failure to install HTSeq Python package on Ubuntu 14.04 -
i need use program called htseq. there detailed instructions installation, new python user must have messed somewhere.
i first tried install under windows xp kept getting error below, after installing vcredist_x86.exe
:
>>> import htseq traceback (most recent call last): file "<stdin>", line 1, in <module> file "c:\python27\lib\site-packages\htseq\__init__.py", line 9, in <module> _htseq import * importerror: dll load failed: le module specifie est introuvable.
since prefer unix environment, gave windows , installed ubuntu 14.04, , tried again. in terminal, entered:
sudo apt-get install build-essential python2.7-dev python-numpy python-matplotlib
i obtained series of errors because proxy wasn't set properly. since didn't work, decided download python-2.7.9.tgz
, install with
.configure make sudo make install
meanwhile discovered proxy set wrong , edited apt.conf
accordingly. repeated command
sudo apt-get install build-essential python2.7-dev python-numpy python-matplotlib
and installed perfectly. downloaded htseq-0.6.1p1
, unpacked in new directory named opt
. tried install , got error:
liz@liz-veriton-m670g:~/opt/htseq-0.6.1p1$ python setup.py install --user not import 'setuptools', falling 'distutils'. setup script htseq: failed import 'numpy'. please install numpy , try again install htseq.
numpy installed, indicated by:
liz@liz-veriton-m670g:~/opt/htseq-0.6.1p1$ sudo apt-get install python-numpy reading package lists... done building dependency tree reading state information... done python-numpy newest version. 0 upgraded, 0 newly installed, 0 remove , 391 not upgraded.
so setuptools appears missing. do
liz@liz-veriton-m670g:~$ sudo apt-get install python-setuptools
but htseq still not install.
liz@liz-veriton-m670g:~$ cd ./opt/htseq-0.6.1p1/ liz@liz-veriton-m670g:~/opt/htseq-0.6.1p1$ python setup.py install --user not import 'setuptools', falling 'distutils'. setup script htseq: failed import 'numpy'. please install numpy , try again install htseq.
maybe did not install things in right directories? did wrong?
probably things bit messed now; maybe have 2 python installations.
write /usr/bin/python
instead of python
ensure use 1 installed apt-get
.
and start python once (just type /usr/bin/python
) , type import numpy
see whether can loaded.
Comments
Post a Comment