python版本3.7
因为不交代自己版本都是不讲码德。。。。
pip install paramiko 报错!!!
running build_ext
generating cffi module 'build\temp.win-amd64-3.6\Release\_bcrypt.c'
creating build emp.win-amd64-3.6
creating build emp.win-amd64-3.6Release
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