Comments (2)
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.
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)
- RuntimeError: MFC redist DLLs not found like (looking for mfc140u.dll) HOT 2
- Can we fetch the event of PrintService HOT 1
- Unable to install/load from wheel at run time HOT 1
- SAFEARRAY(VT_RECORD) missing last element HOT 3
- build 306 cannot build with python3.12 HOT 3
- IDispatch = pythoncom.connect(IDispatch) pywintypes.com_error: (-2147221021, 'Operation unavailable', None, None) HOT 1
- Does it support winUI3 HOT 1
- Scripting with win32api fails in Python 3.12 HOT 10
- Exposing RealGetWindowClass
- 'win32ui' has no attribute 'CreatePrinterDC' HOT 1
- When will a new version be released?
- where the fuck is win32crypt HOT 5
- Client missing? HOT 1
- __import_pywin32_system_module_ function is not finding pywintypesXX.dll even if it exists HOT 1
- Last error code errorneously set by some modules
- Free-threaded support? HOT 3
- Need help to implement support for record pointers as method parameters.
- Support for MFC's dynamic layout in win32ui
- Unable to install directly from Git via pip HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pywin32.