Paramiko and Crypto Import Error: import winrandom (python)

删除回忆录丶 提交于 2019-12-11 07:59:33

问题


Running on a windows machine python 2.7, whenever I try to run my script using the command line I receive the following error.

import winrandom
ImportError: DLL load failed: The specified module could not be found.

But this error does not happen when I run my script through a python IDE


回答1:


Make sure your PATH correctly includes your python2.7 and python2.7\Scripts directories.

Snippet on settings environment variables (if needed):

http://msdn.microsoft.com/en-us/library/ms682653%28v=vs.85%29.aspx



来源:https://stackoverflow.com/questions/6332653/paramiko-and-crypto-import-error-import-winrandom-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!