I can't install any github project with Pip
我不得不在Windows上重新安装很多库。 当我想从github安装pycdc时
在Windows上安装pycdc。
点安装git + https://github.com/zrax/pycdc.git
我得到:
FileNotFoundError:[错误2]没有此类文件或目录:'C: Users TT AppData Local Temp pip-ashu2b4z-build setup.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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 |
我觉得我缺少一些依赖文件
男孩,我曾经后悔过重新安装。 python可能很好用,但设置时遇到了噩梦
也:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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. [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights Command"git clone -q ssh://[email protected]/BlahCo/search/tree/prod_release_branch/ProductName C:\Users\TT\AppData\Local\Temp\pip-6x2kywme-build" failed with error code 128 in None |
根据您的要求,将带有个人令牌的URL添加到github存储库中。
1 2 3 4 | munch pprint coloredlogs git+https://104360bcf4d8a00198bd355d73110ba75866c3e8:@github.company.com/kubernetes-paas/paas-shared-modules.git@master |
由于无法提供密钥,因此安装将使用https API而不是ssh。
1 2 3 | $ pip3 install -r requirements.txt Collecting git+https://104360bcf4d8a00198bd355d73110ba75866c3e8:@github.company.com/kubernetes-paas/paas-shared-modules.git@master (from -r requirements.txt (line 6)) Cloning https://104360bcf4d8a00198bd355d73110ba75866c3e8:@github.company.com/kubernetes-paas/paas-shared-modules.git (to master) to /private/var/folders/c8/p20lpvwn1kl7cyk7b282s3x1j2r82f/T/pip-2py7sl6t-build |
看来您面临两个不同的问题。
首先,对于pycdc:
Pycdc似乎不是python软件包,因此使用pip安装它确实有意义(但逻辑上未找到
检查github(https://github.com/zrax/pycdc),看来您需要下载那里的源代码并进行构建。
第二,BlahCo:
您正在尝试通过
错误
有关更多详细信息,请参见:https://help.github.com/articles/connecting-to-github-with-ssh/