简体   繁体   English

从 Github 安装 Python 包

[英]Install Python Package from Github

I would like to install 10K-MDA-Section from Github ( https://github.com/rflugum/10K-MDA-Section ) but when running this command in the prompt:我想从 Github ( https://github.com/rflugum/10K-MDA-Section ) 安装 10K-MDA-Section 但是在提示中运行此命令时:

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

I get this error:我收到此错误:

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\

Any idea what is causing this?知道是什么原因造成的吗?

As long as the repository ( rflugum/10K-MDA-Section ) does not have a setup.py file, a pip install won't work.只要存储库 ( rflugum/10K-MDA-Section ) 没有setup.py文件, pip install就不起作用。

Check if cloning, and then executing MDA Extractor.py directly ( python MDA Extractor.py )is enough.检查是否克隆,然后直接执行MDA Extractor.py ( python MDA Extractor.py ) 就足够了。

The pip install is looking for a setup.py file and the FileNotFound error implies that the file is not present (Since a pip calls setup.py to proceed with the installation.) pip install 正在寻找 setup.py 文件,而 FileNotFound 错误意味着该文件不存在(因为 pip 调用 setup.py 继续安装。)

The way forward should be to clone the git repo and then execute python MDA Extractor.py前进的道路应该是克隆git repo,然后执行python MDA Extractor.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM