python版本3.7
因為不交代自己版本都是不講碼德。。。。
pip install paramiko 報錯!!!
running build_ext
generating cffi module 'build\\temp.win-amd64-3.6\\Release\\_bcrypt.c'
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
building '_bcrypt' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
Failed building wheel for bcrypt
Running setup.py clean for bcrypt
Failed to build cryptography bcrypt
Could not build wheels for cryptography, bcrypt which use PEP 517 and cannot be installed directly
解決方法:
1.根據提示下載:https://visualstudio.microsoft.com/visual-cpp-build-tools/ 工具 默認下載就可以了
下載的時候會出現選擴展,選擇c++和python。
2.安裝bcrypt
命令:pip install bcrypt
3.安裝paramiko
命令:pip install paramiko
要不再試一下 pip install cython
當時我是下載了 studio 然后再試的 安裝 bcrypt 和 paramiko。
不是很清除是不是也可也不下載 studio。試試吧。
以上應該就可以解決了!
參考文章鏈接:https://blog.csdn.net/wangying202/article/details/109486339?utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-7.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-7.control
