本人Linux系统小白一个;最近在安装HTSeq发现问题;我首先在
$ python -V
Python 2.7.15 :: Anaconda, Inc.
对应的pip下进行安装HTSeq, $ pip install HTSeq
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting HTSeq
Using cached HTSeq-2.0.2.tar.gz (394 kB)
ERROR: Command errored out with exit status 1:
command: /home/dizzer/miniconda2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-om5gT2/htseq/setup.py'"'"'; __file__='"'"'/tmp/pip-install-om5gT2/htseq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-xa6SSD
cwd: /tmp/pip-install-om5gT2/htseq/
Complete output (2 lines):
Error in setup script for HTSeq:
HTSeq requires Python 3.7+.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
发现安装不上,并显示此错误;
后经过不断查询;发现在python3中对应的pip3进行安装
$ pip3 install HTSeq
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: HTSeq in /usr/lib/python3/dist-packages (1.99.2)
发现安装好了。并对HTSeq进行检验:发现在python3下可用:
$ python3
Python 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import HTSeq #无返回值说明安装成功
>>>
那么为什么在Python 2.7.15下直接$ pip install HTSeq 会安装不上呢?还有就是python3似乎是Linux系统本身自带的,是不是就不用再装Python 2.7.15了?只保留一个即可?
求各位大神解答~
最后感谢对我在安装过程的启发。(7条消息) Linux下多版本python与多版本pip以及对应安装库包管理_Mr_leedom的博客-CSDN博客