简体   繁体   English

如何从 github 安装 deepplantphenomics python 包?

[英]How do I install deepplantphenomics python package from github?

I've tried using this pip install ./deepplantphenomics我试过使用这个pip install ./deepplantphenomics

However, it comes up with this error.但是,它出现了这个错误。 ERROR: Invalid requirement: './deepplantphenomics'错误:无效要求:'./deepplantphenomics'

After some research, I ended up trying this command经过一番研究,我最终尝试了这个命令

pip install git+git://github.com/p2irc/deepplantphenomics.git

Instead, it was stuck on cloning even after left for hours相反,它甚至在离开数小时后仍停留在克隆上

Cloning git://github.com/p2irc/deepplantphenomics.git to c:\\users\\zaen\\appdata\\local\\temp\\pip-req-build-5oc6mfeo将 git://github.com/p2irc/deepplantphenomics.git 克隆到 c:\\users\\zaen\\appdata\\local\\temp\\pip-req-build-5oc6mfeo

Any suggestions?有什么建议?

Clone the repository using the command describe in the git:使用 git 中的命令描述克隆存储库:

git clone https://github.com/p2irc/deepplantphenomics.git

Then just access the newly created folder deepplantphenomics and type inside it:然后只需访问新创建的文件夹 deepplantphenomics 并在其中键入:

pip install . 

That will download the dependencies and build the wheel.这将下载依赖项并构建轮子。 After that go to a different folder and try to import the module.之后转到不同的文件夹并尝试导入模块。 It should be successfully loaded.它应该成功加载。

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

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