Questions tagged as 'python-2.7'

2
answers

How to install Numpy via PIP windows 7 64 bit [closed]

Good afternoon how do I install Numpy via pip. I downloaded Python 2.7.13 and I do not know how to install via pip.     
asked by 02.06.2017 / 17:46
1
answer

Differentiate CPF and CNPJ that are in the same column of MySQL database

Hello, I looked at several sites and did not find it, so I decided to ask here. I have a relational database table, MySQL, which has a single column for both CPF and CNPJ. In addition, this column is in the bigint format, that is, the leading...
asked by 11.08.2017 / 23:03
3
answers

How to make a count of how many candidates are on this page? Python 3.6

Simple thing. I need to make a count of how many candidates in the table on this page, for example: link  For example there are 110 names, but I need to get this number and I have to do it in a huge number of pages with the same structure. Her...
asked by 02.03.2017 / 00:21
1
answer

Importing data using pandas in python

Good afternoon, guys! I'm trying to import a csv file using the Pandas package in Python import pandas as pd names_col = ['AnoInfracao', 'TrimestreInfracao', 'CodigoInfracao', 'DescricaoAbreviadaInfracao', 'Gravidade', 'DescricaoTipoVeiculo...
asked by 13.12.2016 / 19:10
1
answer

Get exception name in Python where it is not specific

I'm using the Exception exception, but I wanted to be more specific and get the correct exception, without the code the treatment returns me the following message:    F: \ Bel \ Desktop \ tpredes> guiCliente.py Exception in Tkinter cal...
asked by 30.08.2016 / 15:07
1
answer

Find out if a point is inside a circle in a Cartesian plane

I was doing the Target Shooting task of the 2013 Olympiad of Computing (OBI) level 2, which can be found here , and I was able to do without great difficulties. The task was to figure out how many points a person would make by shooting at a t...
asked by 24.04.2016 / 23:19
2
answers

How to use Kivy with Python 3.4.3 on Mac

How can I use Kivy with Python 3.4.3 on OS X? Only works with Python 2.7     
asked by 31.05.2015 / 01:00
1
answer

How to simulate a form action = POST with urllib2

I want to create a program that reads my college notes and displays on the screen, so I'm using urllib2 to receive the web page where my notes are presented and to receive I need to log in. code in which I'm trying to simulate the submit form...
asked by 14.04.2015 / 17:16
1
answer

ImportError Python Reportlab

Hello, I'm trying to import the following lib into my Python 2.7 project: from reportlab.lib.rparsexml import simpleparse Error:    ImportError: No module named reportlab.lib.rparsexml I have tried to install python-reportlab...
asked by 05.03.2015 / 20:24
1
answer

Error in font python 2x

I'm trying to create separate sources for my project in a given .py file, after creating them I import to the project.py, I do this as follows: font.py  """ Criando as fontes. """ def fontes(self): self.font1=("Arial", "60") project....
asked by 15.08.2014 / 15:16