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

2
votes
1answer
718 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 ...
0
votes
0answers
17 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 ...
0
votes
0answers
20 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
43 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
28 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
91 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 ...
0
votes
1answer
102 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
67 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*. ...
1
vote
1answer
131 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 ...
1
vote
0answers
31 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 ...
3
votes
2answers
2k 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
30 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 ...
0
votes
1answer
50 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 ?
0
votes
0answers
24 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 dependencies....
1
vote
0answers
80 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
0answers
33 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 ...
2
votes
0answers
125 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
1answer
237 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 ...
0
votes
1answer
257 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 ...
0
votes
0answers
42 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
0answers
54 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: universe@universe-AOD270:~/Downloads/...
0
votes
2answers
186 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 /...
1
vote
1answer
168 views

How to get pip functional again?

I ran into the issue below, while running pip trying to install rpyc. Even if i try to run pip without any arguments it still outputs the same error. Any help would be greatly appriciated, Thanks. ...
0
votes
0answers
22 views

How to run EasyModeller (GUI for Modeller) on Ubuntu 14 x64?

I have successfully installed Modeller. I want to try to use the front end GUI software EasyModeller. However, when I try to run it I receive the error message as follows: user@pc:~/Downloads/...
0
votes
0answers
39 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 ...
1
vote
0answers
168 views

Problems after installing Python 3.5.1

I installed Ubuntu 16.04 completely now on my machine aswell as the newest Python version (3.5.1). now i have problems with following packages: python-cairo python-gobject-2 python-pip python-pkg-...
0
votes
0answers
18 views

Change back default python in ubuntu 12.04 [duplicate]

My default python version on my Ubuntu 12.04 is python 3. I remember, a long time ago, I asked someone to change the default python version to 3. I didn't really do a lot, so I had no problems. But ...
0
votes
1answer
189 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 ...
1
vote
1answer
357 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 ...
1
vote
0answers
19 views

Python in terminal- Trying to use ''erase'' and it writes more

im really new to both Ubuntu and trying to learn to use python. Ive just installed python. When i start python in terminal "python3.5" my keys are adding more when i try to erase text. When i try to ...
0
votes
2answers
96 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 ...
10
votes
3answers
991 views

How to run a Python program directly?

How to run a Python program directly? I have created a .py file (say, mnik.py) in gedit. It runs smoothly in terminal. Command goes python3 mnik.py But whenever I click on the file it is opened ...
2
votes
1answer
94 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 1.9....
0
votes
0answers
53 views

Can't edit a file in Ubunutu 14.04

I'm trying to edit a python file called resize.py /usr/local/lib/python3.4/dist-packages/moviepy/video/fx/resize.py I gave myself permissions to unlock the file using sudo chmod 776 /usr/local/...
0
votes
1answer
585 views

How to remove Python 2 in 16.04?

Ubuntu has dropped Python 2 in 16.04. It is still installed after an upgrade, though (it was not part of the "obsolete packages"). Is there a clean way to remove Python 2 and all its dependencies in ...
1
vote
2answers
51 views

How to create a debian/control file that differs based on Ubuntu release?

I have great deal of source code that we maintain, producing many different Ubuntu packages. All of these packages need to build on Ubuntu LTS releases from 08.04 forward. (Yes, I know these are old ...
1
vote
2answers
44 views

Compiling python3 code in terminal with interpreter [closed]

When I compile my code simply with the command python3 name.py, it's being run, but then the whole story ends and I can't do anything with the compiled data. I want to somehow compile my program to ...
0
votes
1answer
69 views

uninstall python 2.7.6 and install 2.6 instead

I need to uninstall python 2.7.6 and install 2.6 instead. how can I manage that. which python command gives (/usr/bin/python). my environment is ubuntu 14.04.
0
votes
1answer
57 views

How can I install a newer python on Trusty?

I'd like to install a newer python 2.7 on trusty. Installing "python" installs python 2.7. The newest version available on trusty is 2.7.6. I'd like to install the most updated version of 2.7. I am ...
0
votes
0answers
19 views

How to use python 2.6.?.? for Ubuntu 14.04.03 as a default python and gnome and server should update?

Our requirement is very simple. And we need help regarding it on How to update after removing python 2.7.? or higher version and install 2.6.? as default one? Because when I do this the it stops ...
1
vote
1answer
56 views

shell script storing run time with python

I am trying to store the run time of a python program using this { time python experiments.py --model iwae --k $k ; } 2> time$k.txt when I do this in a shell script, I get 40.35user 3.12system ...
0
votes
0answers
30 views

problem with installing mysql-server5.5 with ubuntu12.04, socket file not found

I am trying to create a database in ubuntu 12.04 after installing mysql-server5.5 but I got the following problem. after checking it seems the subfolder var\run\mysqld that should contain the socket ...
0
votes
2answers
30 views

Problem to compile python and C++ code using ubuntu Ubuntu 12.04.5 LTS: problem with gcc

I am trying to compile a code involving python and C++ in Ubuntu 12.04.5 LTS and I have this type of error hammouc@kw13921:~/Documents/mimclib$ make python setup.py clean running clean removing '...
0
votes
1answer
598 views

How to install wxpython ubuntu 16.04

I have a problem with playonlinx, and it requires me to install wxpython, but I have it already installed. I've used different methods, but every-time I do import wx, it gives me this error: ...
1
vote
1answer
34 views

Error while sniffing packets using scapy

arp = ARP(pdst=ip1,psrc=ip2,op="is-at") packet = ethernet / arp while True: sendp(packet, iface=iface) time.sleep(10) And the Error is - File "/home/darshan/.local/lib/python2.7/site- ...
0
votes
0answers
48 views

Running a Python script on an apache2 version 2.4 server

I have a python script (python.py) located in the /var/www/html/Python folder. The script saves some images to another directory (/var/www/html/Data). I have the x file permission on the python.py ...
0
votes
0answers
18 views

Can use a custom notification daemon for my own different notifications in my app?

I want to use a notification bubble that allows clickable buttons inside it (for a media player), but the default notify-osd/notify-send does not allow that (or is limited). Can i use other ...
0
votes
1answer
40 views

Would install LAMP conflict with python?

I am currently using ubuntu 14.04. I have PyCharm installed and using django-oscar with mysql. I am wondering what I would install in order to get php working? I am used to windows installing wamp to ...
0
votes
1answer
46 views

How do I reset the Python interpreter's terminal width?

When I start python in a new 14.04 LTS gnome-terminal it is 80 character wide: $ python >>> import os >>> os.popen('stty size', 'r').read() '24 80\n' When I resize the gnome-...
0
votes
0answers
74 views

How to make python script executable upon double-click?

I have tried ticking the execute as application box in properties but still doesn't execute. I want the program to run when I double-click instead of opening the code in gedit. Any suggestions?