windows-7

Software based on Python 3.9 is not working on Windows 7

Software based on Python 3.9 is not working on Windows 7 Question: I made a standalone software using python3.9 which properly works on my system and another windows 10 system also, but I tried running that software on Windows 7 Ultimate and it shows some errors. Please note that I made the software by binding …

Total answers: 2

How to start a new Django project

How to start a new Django project Question: Environment: Windows 7 Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)] on win32 Django==1.7.5 Whenever I try to create a new project: python .Scriptsdjango-admin.py startproject new_project, I get this error: python: can’t open file ‘django-admin.py’: [Errno 2] No such file or directory Where …

Total answers: 3

ImportError: No module named virtualenv

ImportError: No module named virtualenv Question: I am using Django 1.3.7 and python 2.7.6 on windows7 I got an error when I executing my manage.py in this line of code import shutil, sys, virtualenv, subprocess amd running it, I got this error C:Django-Proj>python manage.py update_ve Traceback (most recent call last): File “manage.py”, line 4, in …

Total answers: 11

Why isn't .ico file defined when setting window's icon?

Why isn't .ico file defined when setting window's icon? Question: When I tried to change the window icon in the top left corner from the ugly red “TK” to my own favicon using the code below, Python threw an error: from tkinter import * root = Tk() #some buttons, widgets, a lot of stuff root.iconbitmap(‘favicon.ico’) …

Total answers: 14

Python: Tkinter: How to change the windows border color?

Python: Tkinter: How to change the windows border color? Question: Every result I’ve gotten from searching this question up has to do with changing the border color for Tkinter widget’s WITHIN the main app window, or changing the background color and stuff. What I’m looking to do is actually change the windows border color itself. …

Total answers: 2

Cython: "fatal error: numpy/arrayobject.h: No such file or directory"

Cython: "fatal error: numpy/arrayobject.h: No such file or directory" Question: I’m trying to speed up the answer here using Cython. I try to compile the code (after doing the cygwinccompiler.py hack explained here), but get a fatal error: numpy/arrayobject.h: No such file or directory…compilation terminated error. Can anyone tell me if it’s a problem with …

Total answers: 8

Python "range" resource consumption

Python "range" resource consumption Question: I wrote the following script Basically, I’m just learning Python for Machine Learning and wanted to check how really computationally intensive tasks would perform. I observe that for 10**8 iterations, Python takes up a lot of RAM (around 3.8 GB) and also a lot of CPU time (just froze my …

Total answers: 5

Making Python scripts run on Windows without specifying ".py" extension

Making Python scripts run on Windows without specifying ".py" extension Question: I want to able to open a command prompt at the folder which contains a python script and just type in the script name without the .py and watch it run. Following the various tips on google to do this, I do: Add the …

Total answers: 5