I am writing an application in Python, the code was already there. I tried to run the code, but I got this error.
我正在用Python编写一个应用程序,代码已经在那里了。我试图运行代码,但得到了这个错误。
import win32security
ImportError: No module named win32security
import win32api
ImportError: No module named win32api
I have installed Python in my local set up and it's working fine I think. I open cmd prompt and typed "python",
I get this response
我已经在我的本地设置中安装了Python,我认为它工作得很好。我打开cmd提示符并输入“python”,我得到以下响应
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>>
So Python is installed. What changes do I need to do to make my code work? Is there any package named win32api, or win32security I have to install separately to get it working?
Python已经安装好了。我需要做哪些更改才能使代码正常工作?是否有任何软件包名为win32api,或win32security我必须单独安装,让它工作?
更多回答
优秀答案推荐
What you are looking for is probably PyWin32
您要找的可能是PyWin32
I m not quite sure because I use linux sys but I believe this is what you are looking for.
我不太确定,因为我使用的是Linux sys,但我相信这就是您要找的。
It is third-party python module/extension and thats why you can't import
it with standard python distribution.
You need to install this module. Open the windows cmd and execute:
您需要安装此模块。打开Windows cmd并执行:
pip install win32security
pip install win32api
You need to conexión to internet.
你需要连接到互联网。
更多回答
我是一名优秀的程序员,十分优秀!