[英]Can't install a github repository
I'm trying to run this repository from Github, in order to work on it. 我正在尝试从Github运行此存储库,以便对其进行处理。 I downloaded the files but i keep getting the error 'no module named pyttrex' (pyttrex is the name of the repository).
我下载了文件,但始终收到错误消息“没有名为pyttrex的模块”(pyttrex是存储库的名称)。
I tried to install it using pip ( pip install pyttrex
) but pip didn't even find the module, after that i tried with pip install git+https://github.com/icoprimers/pyttrex
, but i got the error Command "python setup.py egg_info" failed with error code 1
, although setuptools is upgraded. 我尝试使用pip(
pip install pyttrex
)安装它,但pip甚至都找不到模块,之后我尝试使用pip install git+https://github.com/icoprimers/pyttrex
,但是我收到了错误Command "python setup.py egg_info" failed with error code 1
,尽管setuptools已升级。 I have two versions of python installed: 2.7 and 3.6, i just can't see the error. 我安装了两个版本的python:2.7和3.6,我只是看不到错误。
By default pip install pyttrex
installs packages from PyPI. 默认情况下,
pip install pyttrex
从PyPI安装软件包。 There is no pyttrex
at PyPI — URL https://pypi.python.org/pypi/pyttrex returns error 404 — hence pip
cannot install it. PyPI上没有
pyttrex
-URL https://pypi.python.org/pypi/pyttrex返回错误404-因此pip
无法安装它。
At Github repository there is no setup.py
. 在Github存储库中没有
setup.py
。 Resume — the repo is not a package and isn't pip-installable. 继续-存储库不是软件包,不能通过pip安装。 Your best bet is to clone the repository and copy subdirectory
pyttrex
manually to site-packages
. 最好的选择是克隆存储库,然后将子目录
pyttrex
手动复制到site-packages
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.