[python-win32] pywin32 in python 64bit-3.7 environment

Mark Hammond mhammond at skippinet.com.au
Tue Jul 5 20:41:14 EDT 2022


On 6/07/2022 7:13 am, De Silva, Thushara via python-win32 wrote:
> Hi,
> 
> I am working in python 64-bit, 3.7 environment. I want to install 
> pywin32 to conda-environment.
> 
> “pip install pywin32” installed pywin32 304 to my env. But I cannot 
> “import pywin32” from my jupyter notebook (No Module named ‘pywin32’).

Note that confusingly, pywin32 has many modules, but none are named 
`pywin32` - try, say, `import win32api`.

> I 
> assumed, I have to install 64 bit pywin 32.
> 
> So, I tried to install the module as
> 
> pip install 
> https://github.com/mhammond/pywin32/releases/download/b304/pywin32-304.win-amd64-py3.7.exe <https://github.com/mhammond/pywin32/releases/download/b304/pywin32-304.win-amd64-py3.7.exe>
> 
> ERROR: File "setup.py" not found for legacy project 

As Steven mentioned, pip can't install via a .exe. You either want to 
run the .exe, or just use `pip install pywin32` - which you said you did 
above, so I suspect you have already installed it correctly, but just 
specified the wrong module to import.

Cheers,

Mark


> https://github.com/mhammond/pywin32/releases/download/b304/pywin32-304.win-amd64-py3.7.exe <https://github.com/mhammond/pywin32/releases/download/b304/pywin32-304.win-amd64-py3.7.exe>.
> 
> Would you all help me?
> 
> Thanks,
> 
> Thushara
> 
> 
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> https://mail.python.org/mailman/listinfo/python-win32



More information about the python-win32 mailing list