简体   繁体   English

如何在GitHub中安装适用于python的GEM软件包?

[英]how to install GEM package availble for python in GitHub?

I want to install a python package availble in GitHub ( https://github.com/palash1992/GEM ) named GEM (graph embedding methods). 我想在GitHub( https://github.com/palash1992/GEM )上安装一个名为GEM(图形嵌入方法)的python包。 but I dont know how and from which point should I start. 但我不知道我应该如何以及从哪一点开始。 Can anyone give a step by step installing instruction? 谁能提供逐步安装说明? I dont have git on my computer. 我的计算机上没有git。 Should I have install it first? 我应该先安装它吗? For more information I have python 3.7 version on my system. 有关更多信息,我的系统上有python 3.7版本。

  1. I already tried using: pip install GEM command in cmd. 我已经尝试使用:在cmd中pip install GEM命令。
  2. pip install git+git://github.com/palash1992/GEM. pip安装git + git://github.com/palash1992/GEM。

Non of them worked. 他们都不工作。

As @Tino said, your answer could be in the GitHub readme file. 正如@Tino所说,您的答案可能在GitHub自述文件中。 Here are the instructions: 以下是说明:

The package uses setuptools, which is a common way of installing python modules. 该软件包使用setuptools,这是安装python模块的常用方法。 To install in your home directory, use: 要在主目录中安装,请使用:

    python setup.py install --user

Just copy and paste the above line into your command prompt and you should be fine. 只需将以上行复制并粘贴到命令提示符中,就可以了。

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

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