Coder Social home page Coder Social logo

Comments (2)

Avasam avatar Avasam commented on July 18, 2024

Did you install pywin32 in your virtual environment and are you sure that when calling python it's using the executable in your venv?
I'm asking because

C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pythoncom.py
c:\users\user\appdata\local\programs\python\python311\lib\site-packages
C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pywin32_system32\pywintypes311.dll
C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\pywin32_system32\pythoncom311.dll

Don't look like paths to your ./env venv

from pywin32.

nhunter77018 avatar nhunter77018 commented on July 18, 2024

Hi, Avasam, thanks for your speedy response.

You are correct. c:\users\user\appdata\local\programs\python\python311 is my python home folder.

When I couldn't get it to work, I tried installing pywin32 in my virtual environment using pip like this.

(env) pip3 install pywin32
Requirement already satisfied: pywin32 in c:\users\user\appdata\local\programs\python\python311\lib\site-packages (306)

(env) C:\Users\user\source\repos\Test>python -c "import pywintypes,pythoncom;print(pywintypes.file,pythoncom.file,sep='\n')"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pywintypes'

What is it I need to do?

from pywin32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.