我无法使用Pip安装任何github项目 [英] I can't install any github project with Pip

查看:127
本文介绍了我无法使用Pip安装任何github项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不在Windows上重新安装很多库.当我想从github上安装pycdc

I've had to reinstall a lot of libraries on Windows. When I want to install pycdc from github

在Windows上安装pycdc.

Installing pycdc on windows.

pip安装git + https://github.com/zrax/pycdc.git

pip install git+https://github.com/zrax/pycdc.git

我得到:

FileNotFoundError:[错误2]没有此类文件或目录:'C:\ Users \ TT \ AppData \ Local \ Temp \ pip-ashu2b4z-build \ setup.py

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\TT\AppData\Local\Temp\pip-ashu2b4z-build\setup.py

C:\Users\TT\unroll>pycdc .py
'pycdc' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\TT\unroll>pip install git+https://github.com/zrax/pycdc.git
Collecting git+https://github.com/zrax/pycdc.git
  Cloning https://github.com/zrax/pycdc.git to c:\users\TT\appdata\local\temp\pip-ashu2b4z-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\TT\Anaconda3\lib\tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\TT\\AppData\\Local\\Temp\\pip-ashu2b4z-build\\setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\TT\AppData\Local\Temp\pip-ashu2b4z-build\

C:\Users\TT\unroll>pip install git+https://github.com/zrax/pycdc.git

我觉得我缺少一些依赖文件

I feel like I'm missing some dependency files

男孩,我是否后悔重新安装.python可能很好用,但设置起来却是一场噩梦

Boy do I ever regret doing a re-install. python may be nice to use but a nightmare to setup

也:

C:\Users\TT>pip install git+ssh://git@github.com/BlahCo/search/tree/prod_release_branch/ProductName
Collecting git+ssh://git@github.com/BlahCo/search/tree/prod_release_branch/ProductName
  Cloning ssh://git@github.com/BlahCo/search/tree/prod_release_branch/ProductName to c:\users\TT\appdata\local\temp\pip-6x2kywme-build
The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,192.30.255.113' (RSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

Command "git clone -q ssh://git@github.com/BlahCo/search/tree/prod_release_branch/ProductName C:\Users\TT\AppData\Local\Temp\pip-6x2kywme-build" failed with error code 128 in None

推荐答案

似乎您面临两个不同的问题.首先,对于pycdc:Pycdc似乎不是python软件包,因此使用pip安装它确实有意义(但逻辑上未找到 setup.py )检查那里的github( https://github.com/zrax/pycdc ),看来您需要下载有资源并构建它.

It seems you're facing two different issues. First, for pycdc: Pycdc does not seems to be a python package so it does make sense to install it with pip (but it's logical that the setup.py was not found) Checking there github (https://github.com/zrax/pycdc) it appears you need to download there source and build it.

第二,BlahCo:您正在尝试通过 ssh (而不是 https )从那里下载源代码来安装它(就像您尝试使用pycdc一样).如果尝试使用 ssh ,则需要使用ssh公钥配置github帐户.错误 git@github.com:权限被拒绝(公钥)显示您未正确配置帐户有关更多详细信息,请参见: https://help.github.com/articles/connecting-to-github-with-ssh/

Second, BlahCo: You're trying to install it downloading there sources via ssh instead of https (like you tried with pycdc). If you try to use ssh, you'll need to configure your github account with your ssh public key. The error git@github.com: Permission denied (publickey) shows that you did not configure your account correctly For more details see: https://help.github.com/articles/connecting-to-github-with-ssh/

这篇关于我无法使用Pip安装任何github项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆