首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试使用git-bash通过pip安装github包

尝试使用git-bash通过pip安装github包
EN

Stack Overflow用户
提问于 2014-12-17 09:51:38
回答 1查看 2K关注 0票数 1

我正在尝试安装:https://github.com/dgrtwo/ParsePy。根据你需要跑的方向:

代码语言:javascript
复制
pip install git+https://github.com/dgrtwo/ParsePy.git

我正在尝试用win7中的git-bash来做这件事。我试过了:

代码语言:javascript
复制
$ C:\\envs\\r1\\Scripts\\pip.exe install git+https://github.com/dgrtwo/ParsePy.git
Fatal error in launcher: Unable to create process using '"C:\envs\r2\Scripts\python.exe" "C:\envs\r1\Scripts\pip.exe" install git+https://github.com/dgrtwo/ParsePy.git'
(r2)
$ C:\\envs\\r1\\Scripts\\pip.exe "install git+https://github.com/dgrtwo/ParsePy.git"
Fatal error in launcher: Unable to create process using '"C:\envs\r2\Scripts\python.exe" "C:\envs\r1\Scripts\pip.exe" "install git+https://github.com/dgrtwo/ParsePy.git"'

如何安装该程序包?

编辑:

代码语言:javascript
复制
(r2)
$ C:\\envs\\r1\\Scripts\\pip.exe install https://github.com/dgrtwo/ParsePy/archive/master.zip
Fatal error in launcher: Unable to create process using '"C:\envs\r2\Scripts\python.exe" "C:\envs\r1\Scripts\pip.exe" install https://github.com/dgrtwo/ParsePy/archive/master.zip'
(r2)
$ pip install https://github.com/dgrtwo/ParsePy/archive/master.zip
sh: pip: command not found
EN

回答 1

Stack Overflow用户

发布于 2014-12-17 10:00:05

从Github页面复制Download ZIP的链接并将其提供给pip:

代码语言:javascript
复制
pip install https://github.com/dgrtwo/ParsePy/archive/master.zip

应该能行得通。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27517131

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档