# .pth file for the PyWin32 extensions win32 win32\lib Pythonwin # And some hackery to deal with environments where the post_install script # isn't run. import pywin32_bootstrap
修改内容,就是在win32,win32\lib 这些前面,加上你本机Python 环境库的绝对路径
1 2 3 4 5 6 7 8
# .pth file for the PyWin32 extensions G:\Python3\Lib\site-packages\win32 G:\Python3\Lib\site-packages\win32\lib G:\Python3\Lib\site-packages\Pythonwin # And some hackery to deal with environments where the post_install script # isn't run. import pywin32_bootstrap
按照步骤一步一步来,就好了,也没啥操作难度的。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pip3 show wheel pip3 show lxml pip3 show pyOpenSSL pip3 show Twisted pip3 show Scrapy
pywin32 测试
C:\Users\Administrator>workon scrapy_env (scrapy_env) C:\Users\Administrator>python3 Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32crypt >>> 没报错说没有这个模块。说明安装成功