Python 2.7 is a version of the Python programming language released in 2010. Use this tag for questions about using Python 2.7 in Ubuntu.

learn more… | top users | synonyms

0
votes
0answers
8 views

When i click on the PyCharm icon on unity launcher, it open another icon on it

http://www.dodaj.rs/f/H/134/1KNN1lZZ/screenshot-from-2015-04-.png Here it is. When i click on the top icon, it opens another on bottom. How to prevent that?
0
votes
1answer
21 views

Checking for 'gee-0.8' >= 0.8.0 : not found

I am trying to install pysoy and at the stage of configuration using ./waf configure it gives an error as seen below Checking for 'gee-0.8' >= 0.8.0 : not found The configuration ...
0
votes
0answers
11 views

installing python-netcdf4 in ubuntu 14.04

I'm trying to install netcdf4 package using https://code.google.com/p/netcdf4-python/wiki/UbuntuInstall but netCDF4 source release link is not working.
0
votes
1answer
16 views

ImportError: No module named tkinter

When I try to install tkinter using this command: sudo apt-get install python-tk I get this message meaning it is already installed: Reading package lists... Done Building dependency tree ...
0
votes
0answers
14 views

ImportError: cannot import name size_t

I try to import size_t package from numba but I get this error: >>> import numba >>> from numba import jit >>> from numba import autojit >>> from numba import ...
0
votes
2answers
23 views

How can I use the site-package of python?

I have Ubuntu 14.04 LTS. I have got some site-packages for python via pip, but they work for python2.7. how can I use these site-packages in python3.4 IDLE?
-1
votes
0answers
17 views

Python Corrupted: problem with libpython2.7.so and nemo [closed]

I've been trying to fix "nemo" file manager, it just simply stopped working, I saw system's log and figure out that it was a problem with libpython2.7.so.1.0, so I tried to create a symbolic link from ...
0
votes
0answers
13 views

How to resolve python error “IDLE sub process did not make connection”?

I had installed python 2.7 a few months back. After a long gap I tried to open it, but I get this error: IDLE sub process did not make connection. How do I get it working?
2
votes
1answer
166 views

ImportError: No module named sklearn

I installed scikit-learn on following these instructions Even when I try now to run again: sudo pip install -U scikit-learn I get this message proving again that installation is ok: Requirement ...
0
votes
1answer
41 views

how to install python third modules into virtualenv?

I installed a virtual environment for python. I succeeded to install numpy and scipy but not parallel python. How can I install or build third modules into the virtualenv? I tried to sudo apt-get ...
0
votes
0answers
14 views

Cannot find virtualenvwrapper after installing

I installed virtualenvwrapper like this: sudo pip install virtualenvwrapper I thought I would find it here: /usr/local/bin/virtualenvwrapper.sh but I did not. I am trying to configure it in ...
1
vote
1answer
22 views

How can I install the module gateways and find the adress of my routeur

I want to determine the address of my router using a python code. I've found that I can use this method netifaces.gateways() after the installation of the netifaces library. But my problem is: ...
3
votes
1answer
65 views

How can I get the MAC addresses of machines using python-nmap?

How can I get the MAC addresses of machines using python-nmap? I'm using python-nmap to scan my local network, I can get the ip of several systems but not their MAC addresses. How can I get the MAC ...
0
votes
1answer
55 views

How to use Selenium with aliased Python 3

I have recently moved on to Ubuntu 14.04, which has both Python 2 (2.7.6) and Python 3(3.4.0) installed by default. For writing test scripts, I have Selenium installed. If I use the aliasing method ...
2
votes
1answer
156 views

Launching finder from python

I wish to input a subfolder name into terminal and have a script launch it in finder. This is my code: import sys import os fullname='/home/ash/caffe/examples/imagenet/train_rest/'+str(sys.argv[1]) ...
-6
votes
0answers
47 views

how I can scan the entire ip the 172.16.2 . * without using loops

I want to know how I can scan all the possible ip for 172.16.2 . * without writing a ball 0-256 . is there a way to write like 192.186.2 . * / 24 to scan all possible byte last field. I need help ...
1
vote
1answer
94 views

How can I determine the IP address of my router

I want determine the ip of my router address by writing a python code. I found this proposal: $ sudo easy_install netifaces Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) ... $ ipython ... In [8]: ...
0
votes
2answers
399 views

ImportError: No module named llvmlite.binding

I installed Numba for Python 2.7.6 following the instructions on this blog post. However, when I try to import it, I get this error: Traceback (most recent call last): File "<stdin>", line ...
-2
votes
1answer
33 views

Restore Python to default on ubuntu 12.04

I am totally aware a question of similar nature is asked before. But the answer there is not doing any good for me. I have installed python 2.7.6 in addition to system default 2.7.3. And now my ...
-1
votes
1answer
38 views

accidently removed python using purge

i accidently performed sudo apt-get purge python2 now my terminal wont show the colors and many libraries have been gone. Cant i revert back the changes even sudo apt-get build-essentials is ...
0
votes
0answers
36 views

How do I control Compiz or Compton with pygame or pyglfw?

So I have a Zorin6 -> Ubuntu14.04 -> Xubuntu14.04 installation running XFCE. I've figured out how to take over xfdesktop with PyOpenGL, but now I want to render my windows in the 3D space. What I ...
0
votes
1answer
41 views

unable to import pcl to python?

I followed the instructions given here http://www.pointclouds.org/downloads/linux.html . After installing the libpcl , what should be done to import it in python?
0
votes
1answer
39 views

Help import scipy

I need help with scipy of Python 2.7 please oscar@COM0324:~$ python Python 2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more ...
0
votes
2answers
67 views

A strange problem about terminal or command environment

Two weeks ago I was learning Python and Flask. I followed step-by-step the steps in The Flask Mega-Tutorial, Part I: Hello, World!. While I was following the tutorial, I had problem in "virtualenv", ...
0
votes
1answer
116 views

PYTHON SPYDER starting problem on LUBUNTU

I installed spyder from software center, but it generates the following error/bug file when i try to run spyder. Traceback (most recent call last): File ...
0
votes
0answers
118 views

Trouble with python 2.7 in Ubuntu 14.04 when using Odoo

I'm having big trouble with python. It's the same while I'm using the outgoingmail module on Odoo or the asterisk module: 2015-01-20 22:41:04,853 2597 ERROR COMPANY openerp.http: Exception during ...
0
votes
1answer
415 views

Python - AttributeError with hashlib: no such attribute: “openssl_md_meth_names”

I don't know why this is happening, but after some crazy recovery from installing python from source, when anything imports hashlib, it comes up with something like this error: Traceback (most recent ...
0
votes
1answer
652 views

pip produces warnings upon trying to install Django and setuptools- Xubuntu 14.04 x64

I'm trying to set up Django on my laptop for web development testing. When I run sudo pip install Django I get the following errors/warnings: The directory '/home/aaron/.cache/pip/log' or its ...
1
vote
1answer
967 views

how to update python version on ubuntu 14.10

I'm trying to figure out what version of python i have installed, and also upgrade it to the latest. When I go to a command prompt and check, it looks like I have an old version of python installed. ...
1
vote
1answer
82 views

BeautifulSoup4 on Ubuntu 14.04 with Python 2.7.6

I have installed bs4 using apt-get install python-bs4 When I attempt to run a script: import urllib2 import bs4 url = "http://rads.stackoverflow.com/amzn/click/B007C9N4H8" web_page = ...
2
votes
0answers
106 views

Pyhton is messed up because of setuptools. Help please

I have trouble getting python working right, after a mixup with python setuptools. after this, I cannot run flexget and other programs without getting this error: flexget execute Traceback (most ...
4
votes
1answer
2k views

pip won't run. throws errors instead [closed]

I am running into problems when ever I run pip with any arguments or flags. I've tried doing apt-get install --reinstall python-pip but it does not help and am at a loss how to fix this Version of ...
0
votes
0answers
52 views

PyKEP: python 2.7 vs python 3.3

I try to install PyKEP package (pyKEP) and following the instruction in the web page at the and I obtain this error massage: [ 95%] Building CXX object PyKEP/core/CMakeFiles/_core.dir/core. ... ...
1
vote
2answers
203 views

How to make a program use python2.7 instead of default python3.4 on ubuntu 14.04 [duplicate]

I am using ubuntu 14.04 and I have a program that depends on python 2.7 and does not support any of python 3.x. Ubuntu 14.04 comes with python3.4 by default. I would like to know if there is a ...
0
votes
1answer
191 views

How to install pygame in python 2.7.6 on ubuntu 14?

How can I install pygame in python 2.7.6 on Ubuntu 14? I've used sudo apt-get install python-pygame, but it does not work and gives me the following message: unable to locate package python-pygame. ...
0
votes
1answer
28 views

The imported Shared library is not referring to the plugin

I have created a test.so file with a library linked with that (DijSDK.h) The Flow is test.so uses ---- DijSDK.h Which inturn calls ---- libsynthcam.so(plugin)file Now I am importing that .so file ...
0
votes
1answer
192 views

unable to install twilio python module in ubuntu 14.10 ,

When I tried to install twilio module on my system by ... anupam@JAZZ:~$ sudo pip install twilio Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from ...
0
votes
1answer
19 views

Running programs/apps

How do I run/start python after downloading? I am new to both Linux and Ubuntu so I need some pointers. I have been MS for so long I think it has brain washed me!
0
votes
3answers
623 views

Trouble compiling GDB with python 2.7 support for gdb-peda

Trying to install gdb-peda, but am having issues compiling gdb with python 2 support instead of python 3 support. I have python-dev for 2.7, build-dep nmon, and libncurses5-dev installed. I ...
0
votes
0answers
40 views

Everything gone after apt-get remove python2.7

I recently upgraded to ubuntu 14.04 and I installed python2.7 and 3.4 both so I wanted to just keep 3.4 and I knew apt-get remove python would mess up with whole Distro of mine, So I being specific ...
0
votes
1answer
178 views

Python Error when opening software-center

My software center suddenly not working. When i tried to open it from the launcher, its only loading but showing nothing. I tried to run it from terminal, and got this error : Traceback (most recent ...
1
vote
0answers
102 views

Installing Python libraries (difflib and pygments)

I am new to Linux and I need to install difflib and pygments python libraries to my computer. What is the easiest way to do that?
0
votes
0answers
429 views

I am running Ubuntu 14.04, python 2.7.8, I try to install python-setuptools, but it is giving following message

I am try to install python-setuptools but getting following messages: You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: $ sudo apt-get ...
2
votes
1answer
418 views

How to install the most recent numpy, scipy and scikit on ubuntu?

I need to install numpy 1.9 ('cause some methods are available in this version, not in the previous) which isn't the numpy package proposed yet today (apt-get returns 1.8). How to install the latest ...
1
vote
1answer
69 views

Installing pyGPs - A Package for Gaussian Processes

I am doing a project which predicts expected electrical load every half an hour based on Gaussian model of previous 1 year data. I am currently using python 2.7.3 for implementing this project. For ...
1
vote
0answers
390 views

Pip issues after 12.02->14.04 upgrade

With Ubutun 14.04LTS, many but not all pip commands fail as so: # sudo pip install --upgrade distribute Downloading/unpacking distribute Downloading distribute-0.7.3.zip (145kB): 145kB downloaded ...
1
vote
2answers
84 views

Using specific python version for apt-get in Ubuntu 12.04 LTS

On Ubuntu 12.04 LTS I have python2.7.3-0Ubuntu3.5 package installed. One of the libraries i am trying to install has dependency on (>=2.7.3.6). I went ahead and installed python 2.7.6 and even python ...
1
vote
1answer
121 views

Make pycharm default for .py files in 14.04

I want to make pycharm ide default for all .py files in ubuntu 14.04. I have extracted the tar.gz file in my home directory but every time i have to run pycharm i have to go over to the bin ...
0
votes
2answers
158 views

Where do I find Python2.7 in Ubuntu 14.04?

I'm using this tutorial to install Django with Postgresql in my Ubuntu 14.04. In the 4th step, it asked me to go to my python directory, so I ran $ whereis python2.7 and I got multiple directories. ...
1
vote
0answers
40 views

Hide Terminal and still receive input

I want to run a python script that basically uses the terminal for certain commands, but I don't want it to show the terminal. I've tried running the script as nohup file.py & - this works and I ...