I am trying to write code that wraps a C library in python. I am planning on using CTypes to do it and I used visual studio to compile my DLL. I started with a simple function and I added the following in a header within Visual Studio that was then built to a DLL My python wrapper is the
Tag: windows
Why in my Windows machine I have to write command as “py -m pip install “module-name” instead of just writing “pip install “module-name”?
I am working on python on a windows 8.1 machine. I am a beginner and when I want to install a module or look at the version, I have to write the command such as py -m pip install module-name, instead of just writing pip install module-name. If I have to check for python version I have to writepy –version
Virtual Environment calling global installation of Python instead of venv-specifc version
I’m having an issue where for some reason the virtual environments that I’m creating are accessing my system-wide installations of Python and pip when they shouldn’t be. Here’s my fairly simple workflow just make sure I’m not missing anything obvious (Windows 10, Python 3.8.2): My path is now prepended by (venv), as you’d expect. However, lists all of the system-wide
Problems setting up a python 3.7 virtual environment
I am trying to create a new python 3.7 virtual environment on my local computer running Windows 8. I have python versions 3.6, 3.7, and 3.8 installed. Their exe’s are named python36, python37, and python, respectively. All three are correctly added to PATH because I can enter each interpreter. Within my new project’s directory I tried to create a virtual
How to install mod_wsgi into Apache on Windows?
Other similar answers are out of date or focus on a particular error and not the whole process. What is the full installation process of mod_wsgi into an Apache installation on Windows 10? Answer Install Microsoft Visual C++ Build Tools: https://visualstudio.microsoft.com/visual-cpp-build-tools/ Point MOD_WSGI_APACHE_ROOTDIR to your installation (default is C:/Apache24). Use forward slashes: Install mod-wsgi package: Note: Make sure that the
How to mute/unmute sound using pywin32?
My searches lead me to the Pywin32 which should be able to mute/unmute the sound and detect its state (on Windows 10, using Python 3+). I found a way using an AutoHotkey script, but I’m looking for a pythonic way. More specifically, I’m not interested in playing with the Windows GUI. Pywin32 works using a Windows DLL. so far, I
Anaconda (Python) – Cmder integration on Windows 10
I’m having some troubles in having Cmder working with Python through Anaconda on Windows 10 64bit. I got Anaconda working pretty well, tested to plot something with matplotlib and it works just great with Anaconda Prompt. However, if I try to run the same .py file under Cmder, I got the following error: I guess it has something to do
Python stopped working after Windows username change
I changed the windows10 username and now python is not working anymore. The person who previously worked on this machine created the user-profile with a space within the name (C:UsersHis Name…). This ocassionally caused Problems because some programs can’t seem to handle spaces in a path. So I changed this to “C:UsersHisName…” like this: Created a new temporary account. Loged
Anaconda/conda/python/Windows: how to start and activate a conda environment?
I have Python 3.5 (3.5.6) installed via Anaconda, and now I’d like to be able to use Python 3.7, keeping 3.5 as the default (the one python “insert script name” would run on the command line). I commanded the computer to activate it, but it isn’t working. Answer In the Start menu you have to open “Anaconda Prompt” which is
Catch a specific `Windows Error` number – python
I am creating a new nested directory (data_dir = ‘parentchild’) in python: If the parent directory ‘parent’ did not exists (yet, ’cause I might be setting later in the code), then the code caught that as a Windows Error 3 and moved on. However now what could also happen is Windows Error 206 which is when the filename or extension