![](/img/trans.png)
[英]Error Installing Python Package from Github Using PIP
[英]Installing package from github with pip - error
我正在嘗試在虛擬環境中安裝 GPdoemd package ( https://github.com/cog-imperial/GPdoemd ) 但是當我嘗試運行以下代碼時: pip install git+https://github.com/cog-imperial/GPdoemd
我收到此錯誤:
Collecting git+https://github.com/cog-imperial/GPdoemd Cloning https://github.com/cog-imperial/GPdoemd to c:\users\i6817\appdata\local\temp\pip-req-build-df6ldcn1 ERROR: Command errored out with exit status 128: git clone -q https://github.com/cog-imperial/GPdoemd 'C:\Users\I6817\AppData\Local\Temp\pip-req-build-df6ldcn1' Check the logs for full command output.
有誰知道如何解決這個問題? 謝謝!
我已經嘗試了 follow 命令,它對我有用。 我使用 python 3.8.5 和 Ubuntu 操作系統。
python3 -m venv myenv
source myenv/bin/activate
pip install --upgrade pip
pip install wheel
pip install numpy scipy six paramz matplotlib
pip install GPy
pip install git+https://github.com/cog-imperial/GPdoemd
結果:
(myenv)computer:/test$ python
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import GPdoemd
>>> GPdoemd.__version__
'1.1'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.