从Github安装Python软件包

时间:2020-01-23 03:03:02

标签: python github installation

我想从Github(https://github.com/rflugum/10K-MDA-Section)安装10K-MDA-Section,但是在提示符下运行此命令时:

pip install --upgrade git+git://github.com/rflugum/10K-MDA-Section

我收到此错误:

FileNotFoundError: [Errno 2] No such file or directory: 
  'C:\\Users\\...\\AppData\\Local\\Temp\\pip-req-build-1vmt3z0t\\setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error 
  code 1 in C:\Users\...\AppData\Local\Temp\pip-req-build-1vmt3z0t\

你知道是什么原因造成的吗?

2 个答案:

答案 0 :(得分:1)

只要存储库(rflugum/10K-MDA-Section)没有setup.py文件,pip install就不会起作用。

检查克隆是否足够,然后直接执行MDA Extractor.pypython MDA Extractor.py)。

答案 1 :(得分:1)

pip安装正在寻找setup.py文件,而FileNotFound错误表明该文件不存在(因为pip调用setup.py继续安装。)

前进的方式应该是克隆git repo,然后执行python MDA Extractor.py