Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

learn more… | top users | synonyms

23
votes
4answers
13k views

Python: no module named datetime?

OS: Ubuntu 14.04 LTS Python: 2.7.6 My installation of Gourmet Recipe Manager suddenly stopped loading. When I run it in a terminal window, I get the following at the end of the traceback: import ...
0
votes
0answers
6 views

USB web-cam video of Raspberry-pi in WxPython with control buttons

I was wondering if there is a way to record video from a USB web-cam of Raspberry-pi(including sound). I'd like to be able to record a section of video as well as play the recorded video later using ...
-1
votes
1answer
29 views

ImportError: No module named lsb_release

When I run lsb_release -a , it shows an error: Traceback (most recent call last): File "/usr/bin/lsb_release", line 26, in <module> import lsb_release ImportError: No module named lsb_release ...
0
votes
0answers
20 views

python and package manager are broken

After upgrading Ubuntu from 15.04 to 16.04, python and package manager are broken. When running apt-get update I receive the message use apt-get -f install, but when running this command I get ...
0
votes
0answers
12 views

Cannot upgrade pip behind proxy

I've tried all the suggestions in this other question, but it just isn't working for me: Unable to upgrade pip I'm running Ubuntu 12.04, and was able to install pip 1.0 using apt, but that version ...
0
votes
0answers
13 views

PyBFD cannot find Binutils in 16.04

I've upgraded my distro from 15.10 to 16.04 LTS. In 15.10 everything was okay. I am using pybfd 0.1.1 with binutils 2.26 (In 16.04). The python package pybfd used to be okay with binutils of 15.10. ...
0
votes
0answers
11 views

can't install rednotebook because of python dependencies

I can't install rednotebook in ubuntu 16.04. How can I handle this problem? Thanks. sudo apt-get install rednotebook -f Reading package lists... Done Building dependency tree Reading state ...
1
vote
2answers
22 views

Ipython is using python 3.5 instead of 2.7

I recently update my system from 15.10 to 16.04 but now I'm having a problem with the interpreter used by ipython. Now ipython a ipython3 uses the same version (3.5.1) I have tried reinstalling ...
0
votes
1answer
29 views

Installing libgtk-x11-2.0.so.0 in Ubuntu 15.04

I'm trying to install opencv on my Ubuntu 15.04 server. I'm using the conda package manager. conda install -c https://conda.binstar.org/menpo opencv3 When I try importing cv2, the Python package, I ...
0
votes
0answers
9 views

Error on installing python-egenix-mxdatetime

I get an error on installing python-egenix-mxdatetime specific the 3.1.3 version. First I downloaded the package from egenix site, then tried to install python-egenix-mxdatetime using the below ...
-1
votes
0answers
29 views

Exception: tostring() has been removed. Please call tobytes() instead

I try to install reddit on my 12.04 ubuntu server but I get a lot of errors. Here are the first instructions: $ git clone https://github.com/reddit/reddit.git Once this is done, you'll need to ...
0
votes
0answers
10 views

How to install l2cs on unbuntu?

I have to install l2cs on my 12.04 ubuntu server but I don't know how to do that. I'm beginner on dedicate servers and I need to some help to do that. Can someone to provide a set-by-step tutorial ...
0
votes
0answers
91 views

pip use on Ubuntu 16.04

I installed python packages on Ubuntu Trusty using pip and was able to call the installed packages as expected, but on Ubuntu Xenial (installed in a virtual machine) I did the same thing using pip but ...
1
vote
1answer
53 views

Why no more “python-support” in 16.04?

I'm curious why the python-support package no longer exists in 16.04 - is this related to changing Python3 to be the default? Furthermore, is there any package that "requires" it that actually doesn't ...
37
votes
2answers
51k views

How to set up and use a virtual python environment in Ubuntu?

Python virtual environments are used to create isolated python environments to avoid dependency and version conflicts, and also indirectly takes care of permission issues. But what is the easiest way ...
0
votes
0answers
24 views

OS error permission denied

I'm trying to execute a python script but I'm getting an OSError saying “Permission denied”. I tried to change the permissions of the temp folder by sudo chmod 777 -R temp but it did not work here ...
2
votes
1answer
7k views

ssl missing from Python. 'module' object has no attribute 'HTTPSConnection'

My main issue is that httplib module of python is missing HTTPSConnection. When I try to use pip to install fabric using pip it gives me this error: 'module' object has no attribute ...
0
votes
0answers
11 views

Python build errors when installing packages via setup.py

I'm running Python 3.4.3 on Ubuntu 14.04. I have an issue where whenever I install a package via python setup.py install, if there is any building involved the process errors. This happens even though ...
7
votes
3answers
2k views

Why do some python scripts begin with #!/usr/bin/env python? [duplicate]

I noticed that some python scripts start with #!/usr/bin/env python instead of #!/usr/bin/python. Are python scripts the only ones that use #!/usr/bin/env? Are there any scripts that start out with ...
0
votes
0answers
13 views

In Spyder, the window turns gray the moment I type “plt” (for matplotlib.pyplot)

I'm following a course on Machine Learning on Udacity, https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/udacity/1_notmnist.ipynb, and after importing the data I'd like to try ...
1
vote
1answer
27 views

How can I use the “Save as” option in Spyder?

I've recently switched from using Spyder in Windows to Ubuntu 14.04 to edit Python (.py) scripts. In Windows, one could choose File -> Save as, to save the .py file under any name. In Linux, however, ...
0
votes
0answers
31 views

Segmentation fault (core dumped) using matplotlib on Ubuntu Mate 16.04

I recently installed on my machine (an old imac) Ubuntu Mate 16.04. When I try to run a python script from terminal I get the error: Segmentation fault (core dumped) The same script works perfectly ...
0
votes
1answer
20 views

error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I ran the following commands in the terminal for a 14.04 Ubuntu server $ cd reddit/r2 $ python setup.py build $ sudo python setup.py develop After the last line I get an error, please see bellow ...
0
votes
0answers
23 views

Could not find suitable distribution for Requirement.parse('l2cs>=2.0.2')

I get an error on Ubuntu 14.04 Searching for l2cs>=2.0.2 Reading https://pypi.python.org/simple/l2cs/ No local packages or download links found for l2cs>=2.0.2 error: Could not find suitable ...
1
vote
1answer
67 views

pip3 install of jupyter issues: 'notebook' is not a Jupyter command

I'm running Ubuntu 16.04 and installed jupyter using pip3 install jupyter as described on the jupyter.org website. The install appeared to work without issue. There were no missing zeromq references ...
3
votes
2answers
14k views

Python 2.7.6 on Ubuntu 12.04 How to?

I'm developer and I need to make my enviroment work with Python 2.7.6 (not 2.7.3) on the Ubuntu 12.04. Please, provide me some notes how to do that?
4
votes
1answer
320 views

Does pip overwrite packages installed by apt-get?

What happens if I accidentally pip install a package that I already installed using apt-get beforehand? Do I simply get to use the latest version (i.e. probably the one I installed using pip)? What ...
1
vote
2answers
218 views

Ubuntu 16.04 VIM without python support!

Although Ubuntu 16.04 release notes mention that: The default VIM package has been built against python3 instead of python2. Yet after I installed vim with the following command: sudo apt-get ...
0
votes
0answers
11 views

Why is the network unreachable whenever I don't use avahi-autoipd

I'm building a mobile mesh server and whenever I attempt to send broadcasts (shortest path determination), in python3, it fails. I run the following shell commands on both devices (currently ...
0
votes
0answers
18 views

Problem in gst mad in Ubuntu 16.04

Developed a software in python which uses Gstreamer for the working. We installed it and work on ubuntu 15.10. For that installed some components like libmad0-dev, libmadlib-dev and gstreamer0.1*. ...
0
votes
0answers
20 views

Dependency problem

I use Ubuntu on my offline laptop. Since I want to install python, I have to install a lot of dependencies as well, and to install those dependencies I need even more dependencies of the ...
0
votes
0answers
14 views

YouCompleteMe plugin of VIM not working with NLTK

I have recently installed the YouCompleteMe plugin for vim through Vundle. It works really well for Python. Problem starts when I import the third party library nltk. For example if I do the following ...
2
votes
4answers
12k views

Bash cut and grep commands through python

I've tried to read a txt file and find the lines which contain a certain word "checkout_revision". I want to find these lines one by one in a for loop and store them in my variable, let say temp. I ...
0
votes
1answer
44 views

How to install webilder on Ubuntu 16.04?

I was trying to install my favorite background changer application on the latest Ubuntu, however I met the following Issue: webilder : Depends: python-support (>= 0.90.0) but it is not installable I ...
0
votes
0answers
13 views

Getting this error :Sub-process /usr/bin/dpkg returned an error code (1) when I try to run sudo apt-get install python-matplotlib

I tried installing matplotlib, to make graphs on python on Ubuntu 14.04 and am getting the following error. I am unable to resolve this error: (env)ubuntu@ubuntu-Inspiron-5423:~/tweepy$ sudo apt-get ...
5
votes
1answer
31k views

How can I install python-dev off apt-get?

I have tried this and this and this and this Well nothing works with me, i got my amd64 system, 14.04 up and runnig, as I try to install wagtail, a django cms, i get the error. pysass.c:4:20: ...
8
votes
1answer
16k views

Upgrading to python 2.7.5 on Ubuntu 12.04

Ubuntu 12.04 comes with python v 2.7.3 by default. I want to upgrade it to v 2.7.5. I tried the instructions given in this question, sudo apt-get install build-essential sudo apt-get install ...
0
votes
1answer
20 views

pyhton-pkcs11 package in 16.04

I see that pyhton-pkcs11 isn't included in 16.04 repositories. Only pyhton3-pkcs11. Is there any way to install Python2 package version ?
-1
votes
1answer
27 views

importerror: no module named bootstrap3_datetime

While runing "python manage.py migrate" i got error "importerror: no module named bootstrap3_datetime" but in my pip freeze it is installed. django-bootstrap3==7.0.1
5
votes
2answers
13k views

How to play a fixed frequency sound using Python

I have tried a number of ways of playing a fixed frequency sound (e.g. 1000Hz) and nothing works. I have downloaded "beep" and that makes no noise. I tried interfacing to pyao, and that had no ...
0
votes
0answers
15 views

How to install wxpython for virtualenv

I am on 14.04. The system python version is 2.7.6. I am testing a software meant for python 2.7.9. So I have a virtualenv running python 2.7.9. Running this pip install wxpython doesn't work. So I ...
0
votes
1answer
24 views

ImportError: No module named 'PyQt5.QtWebEngineWidgets'

I try to run a python script using PyQt5 QtWebEngineWidgets but it throws errors: from PyQt5.QtWebEngineWidgets import ( ImportError: No module named 'PyQt5.QtWebEngineWidgets' I think there is a ...
1
vote
0answers
38 views

Snapcraft Python2 building numpy with python-dev

just starting to get my hands dirty with snappy. I am trying to port a python project to a snappy app. The python code relies on numpy 1.5.1, which relies on python-dev being installed. My snapcraft ...
0
votes
0answers
11 views

How to install and run qt-designer for python

I'm new to ubuntu, I entered the following commands sudo apt-get install python-pyqt and sudo apt-get install qt-designer. Both the commands executed successfuly but I'm not able to figure out how to ...
0
votes
0answers
26 views

Electrum on Ubuntu 12.04 LTS Offline Computer

I am a ubuntu newbie and want to run Electrum Bitcoin Wallet on an always offline Ubuntu Laptop. The instruction is: Install dependencies: sudo apt-get install python-qt4 python-pip Install ...
0
votes
1answer
41 views

Install python 2.7.11 on Ubuntu without compiling or replacing the pre-installed version

I'm using Ubuntu trusty which comes with python 2.7.6 pre-installed. I need to install 2.7.11 in like /usr/local/bin/python without touching /usr/bin/python or compiling from source. There are some ...
-1
votes
1answer
67 views

force to use Python 3

i want to port Python Scripts to python 3. How can i force Ubuntu to use python 3 instead of python 2 which is installed, as well. Due to the size of the project, i'd prefer not to write something ...
1
vote
1answer
37 views

Kivy hello world script yields black screen on Ubuntu 14.04

On running the basic hello world script found here - https://kivy.org/docs/guide/basic.html the following log is generated and a windows pops up completely blank and black. I've installed Kivy ...
0
votes
0answers
14 views

How I can install regex package for python 3.4 without errors?

I have a little problem (or a big one?). I want to install regex package for Python 3.4. But then I use pip or our installation methods I am getting error: ...
0
votes
2answers
25 views

Use pip with Python 3.5

I have a AWS Ubuntu instance where I manually installed Python3.5 (downloaded it, configured, and ran make, make install). Then I changed the symbolic link sudo ln -fs /opt/python3.5/bin/python3.5 ...