问题描述
||
在Windows机器python 2.7上运行时,每当我尝试使用命令行运行脚本时,都会收到以下错误。
import winrandom
ImportError: DLL load Failed: The specified module Could not be found.
但是当我通过python IDE运行脚本时不会发生此错误
解决方法
确保PATH正确包含python2.7和python2.7 \\ Scripts目录。
设置环境变量的代码段(如果需要):
http://msdn.microsoft.com/zh-cn/library/ms682653%28v=vs.85%29.aspx