Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python and should be asked at [Stack Overflow](http://www.stackoverflow.com).

learn more… | top users | synonyms

0
votes
1answer
42 views

Accidentally removed dist-packages folder, what to do now?

I did something very stupid. I was copying some self written packages to the python dist-packages folder, then decided to remove one of them again by just rewriting the cp command to rm. Now the dist-...
0
votes
0answers
10 views

Upgrading from Python to 2.7.10 to 2.7.11 on OSX [duplicate]

How can I upgrade Python from 2.7.10 to 2.7.11 on OSX (Yosemite)?
0
votes
1answer
738 views

Upgrading from Python to 2.7.10 to 2.7.11 on OSX

How can I upgrade Python from 2.7.10 to 2.7.11 on OSX (Yosemite)?
0
votes
0answers
16 views

dpkg can't configure python-pkg-resources

Cubieboard2, Debian Wheezy $ uname -a Linux cubieboard2 3.4.79 #2 SMP PREEMPT Sat Feb 15 10:02:52 CST 2014 armv7l GNU/Linux I'm trying to update the packages, but the process fails at python-pkg-...
0
votes
0answers
77 views

PyCharm 5.0.3 keeps trying to run files with python 3.5 instead of 2.7

I can't change Python default interpreter to 2.7.9 in newest PyCharm version 5.0.3. Anyone know how to do it? Any .py file I open is run by 3.5 python interpreter. Screenshots: https://hfp89g.blu....
1
vote
0answers
28 views

I cant run python from cmd but it lead to python.exe

I am new in python and i try run it in window. I use window 10 and python 3.5. I changed the environment variable already and when i type "python" in my cmd it doesn't run like i saw from the other ...
1
vote
0answers
59 views

pip install virtualenv taking forever on Windows 7

I'm trying to setup everything in order to start developing with python and Django on a Windows 7 laptop. I already installed python 2.7.11 from here and installed pip using the get-pip.py script and ...
0
votes
0answers
21 views

“Please check for misspellings” upon save on PythonFiddle

Why do I get ”Please check for misspellings” on PythonFiddle when I try to save a script? What is misspelled here?
3
votes
0answers
194 views

Why does dnf uninstall python-pip want to uninstall Fedora?

Having trouble installing packages with pip (wow. so unexpect. much surprise) and upon trying to toss it entirely and start over (no, dnf reinstall was not sufficient) I found that dnf seemed to think ...
-1
votes
1answer
676 views

Installing Wing IDE on Kali Linux 2.0

I am currently reading the book 'Black Hat Python', and am having a problem installing Wing IDE on Kali Linux. Please do help me out!
0
votes
0answers
68 views

Backup of /usr/local/XXXX on upgrade

I kept some Python scripts in my /usr/local/python folder on my Synology NAS. I upgraded Python and my files were gone. Is there any way to recover it?
0
votes
0answers
12 views

Apache: Serve static web content and django app from the same URL

I want to know whether it is possibe to serve static web content, ie. public_html and my django app from the same url. To be more specific, I want requests to first go through public_html and then ...
4
votes
1answer
310 views

Can't install python requests library on Centos 5.11

I'm running Centos 5.11. I'm trying to install the python requests package. But pip keeps giving me syntax errors. pip help returns [root@32437-201824 bin]# pip help Traceback (most recent call ...
1
vote
1answer
24 views

CGI scripts or other? [closed]

So it is my first time writing scripts. Here is the scenario: On our companies web server there are tools written in javascript that can verify user's accounts, change people passwords, and things ...
0
votes
0answers
29 views

How to invoke Pyscripter debugger

Using pythonwin, you can invoke the debugger by pywin.debugger.brk() Can you somehow do the same thing with pyscripter? The advantage of this method is that your code runs at normal speed until the ...
0
votes
0answers
48 views

uWSGI: how to serve static files from root and an app from a sub directory?

I am using Cloud 9 IDE to build a website. My goal is to serve a static website from the site root /index.html and so on. The content in this site will be regenerated on a schedule (daily in this ...
1
vote
1answer
14 views

Running multiple Python servers on different URL mappings

Python allows me to create and run applications on any port of my choosing, but how do I handle several of such apps together so that the end user can differentiate only by URL? Basically, what I want ...
1
vote
1answer
235 views

Running Pyplot over Putty ssh from windows machine to linux

I am running python code on a linux machine through a putty ssh from a windows machine. I need to run the following commands: dataframe.plot() matplotlib.pylot.savfig("some figure.png") Nothing ...
1
vote
0answers
220 views

Error installing Python package Leven using Visual C++, Python27 64 bit, Windows 10, even installing directly from github

I am having trouble installing the Python package Leven. I downloaded the python package from there. I extract the folder, went to where setup.py is located, open cmd and run python setup.py ...
1
vote
0answers
52 views

Add a new locale to OS X (/usr/share/locale)

I am trying to add a new locale support to my OS X system, which I could then use in Python scripts. It is Indonesian locale (id_ID) and I currently do not have it in my /usr/share/locales directory, ...
4
votes
1answer
146 views

Can Emacs be set up to display Python code in Python mode and display docstrings in ReST mode?

I often edit Python code in my Emacs and have it set up to display Python files in Python mode. I often find myself formatting dosctrings as ReStructured Text and I was thinking that it would be great ...
0
votes
2answers
1k views

Can't import matplotlib on Anaconda (Python), on my Mac, even though it's installed on the terminal and set as a default

So basically on my Ipython I can't get it working even though it's installed, and the terminal shows that it should be working. Syntax and Error In [1]: import matplotlib.pyplot as plt -------------...
-1
votes
1answer
60 views

Can't Update Python

I have Python installed at /usr/bin/ and its version is 2.6. Then I downloaded Python2.7.tgz and extracted it at location /scratch/bin/ and then installed using the steps ./configure make sudo make ...
0
votes
3answers
908 views

Python script to compare the keys of 2 dictionaries and if equal print value of the key of 2nd dictionary

I have 2 dictionaries for example: dict = {1 : a, 2 : b, 3 : c, 4 : d} dict1= {5 : z, 1 : y, 6 : x, 3 : u} I need to compare the keys of 2 dictionaries and if they are equal, I have to print the ...
1
vote
3answers
1k views

virtualenv command not found in El Capitan

OS: Mac OS X 10.11.1 (El Capitan) Python: Homebrew Python 2.7.10 pip: 7.1.2 (latest) I installed virtualenv by pip install virtualenv, the installation was successful. But when I typed virtualenv, ...
2
votes
1answer
24 views

Folding specific sections of code in vim

I'm wondering if it is possible to automatically fold only specific sections of code in vim (specifically for python files). I'm currently using the indent fold method. And I would like to only fold ...
0
votes
0answers
34 views

Can't create or see Windows 7 restore points anymore

Long story short, I was deleting some path variable in the Environment variable > system variable > path. I needed to clean up some path variables for my python. Have done something like this before, ...
0
votes
1answer
120 views

How to get csvkit to recognise long ASCII lines?

I am using Ubuntu and I downloaded this CSV file, which file tells me is encoded like: ASCII text, with very long lines, with CRLF line terminators However, when I pass csvcut -e ASCII datafile, I ...
-1
votes
2answers
114 views

Python developer on Windows with access to Linux - How to link?

I am a python developer who is stuck on a windows machine that doesn't support all the necessary library versions that I need to use. Luckely I have access to a Linux box, which I normally open via ...
0
votes
0answers
19 views

Python scheduler using bat file

I have got a pyhton script for reading a csv file from a server, extracts one line and send an email with the extracted line. But I would like to run the scipt every 20 minutes which is the time step ...
0
votes
0answers
131 views

Python Win 7 Pip Install gcc Error

I'm attempting to install PyOpenGL_accelerate via pip and I'm receiving this error: ... c\PyOpenGL-accelerate -IC:\Python34\include -IC:\Python34\include -c src\wrapper .c -o build\temp.win-amd64-3.4\...
1
vote
2answers
49 views

What is the difference between working on a machine and doing the same task over ssh?

I have been working at University on a local machine which is on a server that I have access to. I have some c code and am able to carry out parallel runs of the code as expected. However when I ...
0
votes
0answers
209 views

How to clean up a failed pip installed app?

I was trying to install flask onto a Raspberry Pi Raspbian using pip-3.2 install flask. However, the installation failed. I tried to uninstall using pip-3.2 uninstall flask. It said "Successfully ...
0
votes
0answers
24 views

Triplicate entries of a column

I have a data column with over 2000 entries... MV1 BNV CMG IKN ... ... I want to triplicate each entry in the column format. Result should be; MV1 MV1 MV1 ...
1
vote
0answers
146 views

pip hangs after upgrade to 7.1.2 on Windows x64

I am using the Anaconda distribution for my programming needs in python (Python 2.7.10 :: Anaconda 2.3.0 (64-bit)) - running under Windows 10. After upgrading the pip package manager to the latest ...
2
votes
1answer
164 views

Wireless driver for mouse movement on LInux/windows (with the help of interactive board)

I have moved to mainly working on Linux machine primarily Ubuntu 15.04. Please the question here: http://askubuntu.com/questions/731546/wireless-driver-for-mouse-movement-on-ubuntu-15-04 I have a ...
0
votes
0answers
21 views

Twitter API for Python

I am looking for a convenient Twitter API for Python. There are some Python APIs available however it seems they have some limitations on the number of tweets that can be retrieved. I wish to analyze ...
0
votes
0answers
145 views

Glade for Gtk 2 not work in ubuntu 15.10

I am a new person in Glade GTK . I tried a working program (demo) in my Ubuntu using Python. But I got error message as File "revolution.py", line 21, in init self.builder.add_from_file(self....
0
votes
0answers
49 views

Convert vmware .ovf to hyper-v

Can you please tell me if there is any script that I can do(preferably in python or powersehll), for taking vmware .ovf(+his vmdk) and import it in hyper-v machine? I don't want to convert with third ...
0
votes
0answers
40 views

Find doc/docx/txt/rtf/ file containing 12 strings/words only - MAC OS

This is a strange request and I'm unsure if it's even possible but Google led me here through a not so similar question and so I thought I'd ask. I basically need to find a text file on my computer ...
0
votes
0answers
31 views

Precompiled M2Crypto to run Python script on Windows (pysFEMMA)

I am trying to run a Python script on a Windows Server 2012 R2 (64bit) server. I need to install quite a few dependencies and tools that I am having issues with. Please see the installation document ...
0
votes
1answer
47 views

Python and Berkeley DB versions in RedHat Enterprise Linux 6.6, 6.7 and 7.x

I need to know what versions of Python and Berkeley DB are installed with RHEL 6.6, 6.7 and 7.x. If several versions of Python are available (for instance, Python 2.7 and 3.3) I would need to know ...
0
votes
1answer
61 views

Update python 2.7.6 to latest 2.7.x

My OS is Mint Linux and my python version is 2.7.6. If there is no reason for NOT update, I would like to update it to the latest 2.7.x version. I can't figure out a linux command which does this. ...
0
votes
0answers
38 views

Ubuntu 14.04 LTS: what to do so that Python and NGINX use a secure ssl (ie 1.0.1p) library?

I'm going nuts over this issue. I'm totally unable to get a working system where Python 2.7 (Python 2.7.6 (default, Jun 22 2015, 17:58:13) and NGINX (nginx/1.4.6 (Ubuntu)) use a openssl which has been ...
1
vote
1answer
27 views

Is Ubuntu Server 14.04 LTS getting neglected by Canonical?

I'm doing some clean installs and am faced with the issue that OpenSSL is at version 1.0.1f 6 Jan 2014 (yay, heartbleed!), and Python at 2.7.6. I'm having a really hard time upping OpenSSL to the ...
0
votes
0answers
94 views

Running WeasyPrint after updating Mac to El Capitan

I recently updated my OS on my mac to El Capitan and since then have been running into issues trying to run WeasyPrint. I have updated macports, uninstalled and reinstalled all of the macport ...
4
votes
1answer
2k views

AWS Ubuntu 14.04 upgrade Python to 2.7.10, how to deal with apt-get python-dev

Ubuntu 14.04 from AWS ships with python 2.7.6. Before doing anything else to the image, I do an upgrade to 2.7.10 by issuing sudo apt-get -y install build-essential checkinstall libreadline-gplv2-...
0
votes
1answer
46 views

How to create a file with invalid or special characters in its name?

I'm trying to install some Python 2.7 module named libwapiti on Windows 7. While trying to install it, it asked me for several header (*.h) files which were not included in MSVC2008ForPython27 and I'm ...
0
votes
1answer
73 views

Pad a regex capture group?

Is there some way to pad single digit numbers with a 0 with regex? I'm using Python. 6 => 06 1 => 01 etc. Here's what I'm working on: https://regex101.com/r/iG9qC7/1 I'd like all the file names ...
2
votes
2answers
546 views

What does CPU column means on Process Tab on Task Manager

I have an application in Python that I have deployed in a Client. It shows 25% on CPU column on Process Tab. I wonder what it means or how it affects the CPU? Because most of the processes have only ...