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

1
vote
1answer
105 views

Unable to install matplotlib using pip in Ubuntu 16.04

In Ubuntu 16.04 I am able to install almost every python package and library using pip except for matplotlib. I use this command to install matplotlib pip install matplotlib This gives the error: ...
1
vote
1answer
253 views

Installing LiClipse 2.4.0, not launching

I recently installed LiClipse on my virtual Ubuntu Machine following these steps: Download latest version of LiClipse from the official website. Extract the downloaded file using the command tar ...
0
votes
1answer
25 views

Remotely log into multiple computers and run a python script

I am currently trying to set up network rendering with Blender using computers on different networks. I made a script that launches blender and connects to the host's computer. My problem is that I ...
0
votes
1answer
96 views

Numpy broken in ubuntu 16.04 LTS [closed]

I have instaled packages "python-numpy" on ubuntu 16.04 LTS. Unfortunately, the package is broken: >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <...
1
vote
1answer
4k views

Download the latest version of python-pip using apt-get

Ubuntu 12.04 Python 2.7 apt 0.8.16~exp12ubuntu10.17 for amd64 compiled on Jun 13 2014 17:42:13 When I run sudo apt-get install python-pip It installs a a very old version. $ pip --version pip 1.0 ...
0
votes
0answers
36 views

i am making a web app and i got this error with mysql

* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) [2016-06-27 01:37:28,036] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "/home/ubuntu/.local/lib/python2.7/...
0
votes
1answer
122 views

Remove/Uninstall Python 3.5

I am trying to uninstall Python 3.5. I have tried this up till now: sudo make clean sudo make uninstall sudo -n install These commands don't remove Python 3.5 completely. I want to keep 3.4 as it ...
0
votes
0answers
25 views

Errors were encountered while processing: python-pkg-resources

I was trying to install the packages: sudo apt-get install -y network-manager cron unattended-upgrades avahi-daemon ros-kinetic-ros-base python-rosdep but this failed with the error: Errors were ...
1
vote
0answers
20 views

Changes via Gio.Settings don't take effect

As the title suggests, I am trying to alter gsettings via python's Gio module on Ubuntu 16.04 LTS ( a user over at Unix & Linux site said the script bellow works on Arch, so it may be Ubuntu-...
3
votes
0answers
35 views

How to sandbox code in chroot for multiple users?

What am I trying to do? I'm writing a code evaluator using chroot and python and went to hackerrank for some inspiration. What I think is happening at Hackerrank? Hackerrank creates run-...
1
vote
0answers
27 views

Python plots won't display: “Font config error”

I am trying to plot some histograms with matplotlib.pyplot through the PyCharm IDE. Whenever I run my project, I get the same thing: Font config error: cannot load default config file and no ...
1
vote
0answers
24 views

Why can't java find my fonts?

Whenever I try to run any jar file via java -jar file.jar, I get an exception saying: Exception in thread "main" java.lang.NoSuchFieldError: fontFile I just earlier today was having the same issue ...
5
votes
0answers
91 views

How do I write a Unity sytem indicator in python?

Background: This is NOT for application-indicators but system-indicators. Picture: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators The objective is to find a final solution ...
0
votes
1answer
58 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. ...
3
votes
0answers
78 views

Software & Updates crashes and will not open

I am unable to open the Software & Updates configuration window in System Settings. The best I have been able to do to understand what is going on is the following output after opening System ...
24
votes
1answer
147k views

How to install numpy and scipy for python?

I am tired to try to install numpy and scipy for phyton 2.7.5, I need this version of python because my final goal it's to install class (http://class-code.net/) and montepython (http://montepython....
1
vote
0answers
34 views

Unable to install Pillow on Ubuntu 15.10

I m trying to install pillow via the command : pip install pillow on my Ubuntu machine but I repeatedly get this error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 How can I fix ...
1
vote
0answers
20 views

How does one package a python application that includes a gsettings schema with setuptools?

I'm trying to use setuptools to package a python application that relies on gsettings for storing and retrieving user's preferences. However I have not used said tool before and I am unsure about what ...
0
votes
0answers
39 views

alt key shortcuts in pycharm are not working on ubuntu 16.04

Shortcuts involving "Alt" key is not working on pycharm. For example the shortcut for "finding usages" on my machine is "Alt +f7". But whenever I press this key, my cursor changes from arrow to the ...
0
votes
0answers
31 views

Python Gobject broken Help?

I don't know what broke it, but my python Gobject library is missing something ... When I try to run most tools like gnome-tweak-tool which require GTK, I get an error saying : Traceback (most ...
40
votes
4answers
57k 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
1answer
65 views

setuptools must be installed to install from a source distribution

I am trying to install pywavelets lib I gave a command pip install pywavelets It gave me a error setuptools must be installed to install from a source distribution. Checking with this error I saw ...
1
vote
1answer
76 views

python: pip install xmltodict fails

I would like to use Ansible on my ubuntu machine. I tried to use the ping module and it complains that it does not find the xmltodict python library. I thus wanted to install the missing module using ...
40
votes
3answers
55k views

How do I install newer Python versions using apt-get?

How can I install a newer version of Python using apt-get? Obviously I realise I can install using the source tar ball, however I would prefer not to install from source and instead use the package ...
0
votes
1answer
92 views

TensorFlow broken data stream reading image file

I have installed tensorflow 0.8.0 in anaconda env called "tensorenv". I then began running basic codes in it in a file called basic_python.py. import matplotlib.image as mpimg # First, load the ...
3
votes
2answers
7k views

IDLE installation in Ubuntu 14.04

Does anybody know which IDLE package I should install from Software Center in Ubuntu 14.04 assuming I want to program in python 3?
3
votes
2answers
197 views

How to install LLVM 3.7.x on Ubuntu 14.01 (llvm.org/apt down)

I am trying to install LLVM 3.7.x in order to get llvmlite for Python 2.7. However, the apt mirror seems to be down, reading: APT mirror was temporary switched off due to excess load. We are ...
0
votes
2answers
74 views

Start terminal in ubuntu with a python script?

How can I start a terminal in Ubuntu 16.04 with a python script, execute commands on that terminal, and retrieve the output from those commands? For example, I want to check the contents of a folder (...
0
votes
1answer
258 views

Fatal error:Python.h no such file or directory

root@rani-System-Product-Name:~# sudo pip install python-igraph Downloading/unpacking python-igraph Downloading python-igraph-0.7.1.post6.tar.gz (377Kb): 377Kb downloaded Running setup.py egg_info ...
4
votes
1answer
26 views

ps inside crontab is not seeing a running process

I have this robot worker.py, which I just run as: python worker.py --details There are many problems surrounding this robot, so it keeps going down each 30 minutes. When the robot is running, ps ...
5
votes
1answer
134 views

ImportError: No module named Selenium2Library

I am quite new to Robot Framework and I could use some help. I'm using Ubuntu 14. And I have installed Robot following these steps: # Python package management tool pip. sudo apt-get install python2....
1
vote
1answer
70 views

Pydev installation problem in eclipse

I am trying to install pydev 5.0 in eclipse 3.8.1 in Ubuntu 14.04 LTS,using Help->install new software.. I have Open java 1.7.0_101 and python 2.7.6. Installation success but it doesn't see in ...
3
votes
1answer
61 views

No module named pygame

I have two Ubuntu VMs. On one of them, I can't seem to install PyGame. I've tried installing through various methods: sudo apt-get install python-pygame (Remove and reinstall pygame a couple times) ...
65
votes
7answers
101k views

Make default `python` command to use Python 3

I can access Python 3 via python3 command. But I want to make the default interpreter to use python command for Python 3. Simple typing python takes me to Python 2. How to upgrade?
0
votes
1answer
88 views

Packages broken after accidentally deleted python3

I accidently deleted my python3 package and then I'm trying to reinstall the package. But I am running into errors everytime. The following packages have unmet dependencies: devscripts : Depends: ...
1
vote
0answers
52 views

Syntax for sending notification hint using gdbus or python's dbus module

I'm trying to update a previous notification (which displays the screen's brightness after being changed using a progress bar) with gdbus, as notify-send does not support updating. Previously I use ...
0
votes
0answers
38 views

Python Pandas: SyntaxError: invalid token

I tried to import pandas as pd in my ubuntu terminal, unfortunately I'm running into import error. ramesh8v@vm64-223:~/anaconda3$ python Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Dec 7 2015, ...
0
votes
0answers
77 views

How do I install 32 bit anaconda on my 64 bit machine?

I'm using Ubuntu 16.04 LTS and use Python 2.7.11 |Anaconda 4.0.0 (64-bit) but in order to properly run pygame (which is only available in 32 bit) I need to have 32 bit Anaconda. I tried it with ...
1
vote
0answers
74 views

gi repository problem

When I try to run software-center I get this message Traceback (most recent call last): File "/usr/bin/software-center", line 25, in <module> from gi.repository import Gtk, GObject ...
1
vote
1answer
106 views

When trying to import Matplotlib.pyplot, get “UnicodeDecodeError”

When trying to run a Python script starting with import numpy as np import matplotlib.pyplot as plt I'm getting the following error message: /usr/lib/python2.7/dist-packages/matplotlib/...
2
votes
1answer
53 views

Can't install Mrtg on Ubuntu 14.04 LTS [closed]

I can't install MRGT-2.17.4 on Ubuntu 14.04 LTS Text appear Error below ? Reading package lists... Done Building dependency tree Reading state information... Done mrtg is already the newest ...
1
vote
1answer
54 views

Creating a bash script [closed]

Alright so, just for a little heads up, I literally just learned what bash script was today. Anyways, I have this series of voice recognition programs wrote in python, and I wanted to make a voice ...
3
votes
1answer
141 views

Self built Snap run fail on Locale error

I built a snap using python3 plugin. It should open a PyQt5 app. The snap built with no problem, but after the snap is installed, calling the installed python script in command line fails with the ...
3
votes
1answer
6k views

Visual studio Code with python

I have installed Visual Studio Code in my Ubuntu. But I can't use Python. Some information: I didn't install any python version. I am currently using it on terminal or Python idle 2.7 Can anyone ...
2
votes
1answer
32 views

How can I store what video I am watching using Python in Ubuntu?

I am new to Ubuntu. I watch a lot of TV shows and sometimes lose track of what I am watching. When I used Windows, I refered to the list that pops up on right-clicking the VLC icon to keep track of ...
1
vote
2answers
32 views

Creating Virtual Box desktop with Linux on my mac

I am a novice Python programmer and I am having trouble creating a Virtual Box, hopefully this is an easy fix! So, I've been using a virtual machine for my computational physics class, but it is ...
1
vote
2answers
83 views

How do I run a python script whenever a file is created in a directory?

So, I'm trying to do this, somewhat, simple task, but I have not been successful yet. I'm hoping that changes now. The goal: Run /var/www/lager-scanner/filer/pluk_script.py whenever there is a new ...
0
votes
2answers
52 views

Eclipse, for python project not jumping to function definition

In Eclipse, I created a Python project properly by installing all the plug-ins. But now I'm unable to jump to respective module (source file) and method (function definition). Please suggest me ...
0
votes
0answers
26 views

How to change python+filename.py auto-complete to anyfilename

This questions may seems silly as I am a new Linux user on Ubuntu 16.04. I am learning python now. As the command python x+tab will only auto-complete xxxxx.py instead of xxxxx without .py. How ...
10
votes
2answers
19k views

Python 3.5 has just been released, can I get it as a package for Ubuntu 15.4?

I want the very latest version of Python, but I don't want to bypass the apt package manager: I don't want to do an old-school source install because that can make it harder to uninstall when the ...