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

-4
votes
1answer
23 views

failed to import “numpy” module in Python [on hold]

I'm trying to create a simple script with python, in Linux Mint. while executing this line: from numpy import cos,sin,arccos I run into the error: File "<string>", line 1, in ...
0
votes
1answer
1k views

Making webpy framework accessible from outside the local network

I am using ubuntu 12.04.03. I have some basic experience with webpy and I had it working for my LAN just by following the tutorial. The framework needs to be able to be used from outside the local ...
5
votes
3answers
14k views

Cannot install python module urlparse

some program written in Python 2.7 complains that ImportError: No module named 'urlparse'. So I need to install the module, but I am not able to do it. The module does exist, it is described e.g. at ...
0
votes
2answers
38 views

Python code to GET (not set) the current desktop wallpaper image

Like the title says, I'd like to slurp in the entire 1920x1080 background wallpaper image into a readable object regardless of what windows, panels, launchers, etc. may currently be on top of it. ...
1
vote
1answer
32 views

Tensorflow for python 3 throws an error when installing on ubuntu

Today I was attempting to install google's Tensorflow for python 3 without gpu. When I run the command: sudo -H pip3 install ...
0
votes
0answers
15 views

try to figure out the reason for program exiting

I have a python script running in background with nohup ./myprogram.py 1>console.out &. The program is constantly logging to some log file and the processing is long. After running for 2 ...
0
votes
1answer
12 views

How to `conda install ipython`?

System: Ubuntu 14.04, python 2.7.6, pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7). I am trying to setup my packages by conda because of this table here in my system. I did successfully ...
0
votes
0answers
14 views

Why a Big Time-gap with Matlab Kernel in IPython-Notebook of Ubuntu 14.04?

System: Ubuntu 14.04, Matlab 2016a, pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7). I do successfully sudo -H pip install pymatbridge sudo -H pip install matlab_kernel python -m ...
1
vote
1answer
36 views

How to install Matplotlib in Ubuntu 14.04?

Motivation in 14.04: 16.04 is buggy for production use. 14.04 is the only stable one. 15.10 is also buggy. Their upstart/systemd with runit is horrible. I run masi@masi:~/BitTorrentSync/IPython$ sudo ...
0
votes
1answer
24 views

How to Restore Pip installation and its Installations in Ubuntu 14.04? [on hold]

I messed up my Pip installation. There was one missing when I run sudo apt-get install python-pip. Then, I run after sudo apt-get install python-dev. Then, I started to get 404 errors in ipython ...
0
votes
1answer
37 views

OverGrive not launching

I installed OverGrive and it worked fine for a few days before it suddenly stopped launching. I've tried a few things, including reinstalling pip, python, etc. When I run: python ...
1
vote
1answer
19 views

How to Install Pycosat in Ubuntu?

I run pip install pycosat but I get: Downloading/unpacking pycosat Downloading pycosat-0.6.1.tar.gz (59kB): 59kB downloaded Running setup.py (path:/tmp/pip_build_masi/pycosat/setup.py) egg_info ...
-1
votes
1answer
38 views

Ubuntu 16.04 32 bit. Problems with PyCharm Community

I've got a same problem as a guy here. But I have 32 bit system. I've tried to fix it as the top answer advices, but instead of working pycharm I catch much more problems, which are wroten at this ...
0
votes
2answers
5k views

Installing Pygame Ubuntu 13.04

I recently installed Ubuntu 13.04 and want to install pygame. I've attempted doing as instructed on the pygame page (using the source code) however I am unable to install the dependencies and I get ...
0
votes
2answers
436 views

How to download easygui for python3.3?

I have python 2.7 and python 3.3 in my Ubuntu 13.10 system.I have easygui in-built for python2.7 but not for python3.3.But when I download the zip file of easygui and unzip it and type "python3 ...
0
votes
1answer
19 views

Can't use Python console on Gedit

The error message is: Plugin loader python3 was not found Python3 is installed... Using Ubuntu 16.04 LTS
1
vote
1answer
21 views

how to install a specific package version

I'm building my first debian package (django), which needs some dependencies, so I was wondering if it's possible to install a specific package version with apt-get. For example instead of pip ...
0
votes
0answers
15 views

Unable to source virtualenvwrapper.sh file

I have two versions of python installed, version 2.7 at /usr/local/lib/python2.7/dist-packages another version at /home/kv/.pythonbrew/pythons/Python-2.7.5/bin/python running the command ...
0
votes
1answer
17 views

Python script in CRON is not running in AWS ubuntu 14.04 instance

I want to schedule a CRON job into AWS Ubuntu instance. I have a simple cron sample like the following - import pandas as greatPanda import pprint import uuid df = ...
0
votes
1answer
74 views

installing pip3 (for python3) on ubuntu 16.04 LTS using a proxy

I have tried entering: sudo apt install python3-pip The error I get is: $ sudo apt install python3-pip Reading package lists... Done Building dependency tree Reading state ...
0
votes
1answer
4k views

AttributeError: 'module' object has no attribute

I am trying to get the depth map of two stereo images. I have taken the code from http://docs.opencv.org/trunk/doc/py_tutorials/py_calib3d/py_depthmap/py_depthmap.html I get the following error: ...
-1
votes
0answers
22 views

PIP does not see a Python

amigo421: ~$ pip bash: /usr/local/bin/pip: /usr/bin/python: bad interpreter: No such file or directory amigo421: ~$ python --version Python 3.4.3 amigo421: ~$ alias alias ...
21
votes
7answers
91k views

What version of Python do I have?

How can I find out what versions of Python I have? I am using Ubuntu 14.04 (Trusty Tahr).
0
votes
0answers
183 views

Ubuntu gufw not loading

OS: Ubuntu 14.04 64bit Python2 Version 2.7.10 Python3 Version 3.4.3 I recently installed python from source and gufw stopped loading. When I try to launch it from terminal I get the following errors: ...
0
votes
0answers
17 views

What's the most convenient GUI framework in Ubuntu 14.04 to create a graphical interface for a Kinect 2.0?

I want to create a graphical interface for the Kinect 2.0 (for Xbox One) in Ubuntu 14.04 LTS combining Python and C programming languages, in order for anybody to be able to easily use it, i.e., ...
1
vote
2answers
6k views

Fatal Python error: Py_Initialize: Unable to get the locale encoding … SyntaxError: invalid syntax Aborted (core dumped)

I installed anaconda by running the bash Anaconda-2.2.0-Linux-x86_64.sh command on my Ubuntu 14.04 system , which installed successfully, after which I was asked to export my new ...
1
vote
0answers
33 views

Launch python script fullscreen on startup (Ubuntu 14.04)

I have a python program that I would like to automatically run after logging in. This shouldn't be much of a problem, however, I would like the terminal to be in fullscreen mode while running the ...
1
vote
3answers
2k views

which version of python is installed?

I installed Ubuntu 12.10 in my VirtualBox. Is python installed by default? If not, How can I install python?
-4
votes
0answers
49 views

OSError: [Errno 13] Permission denied - Help! [closed]

I'm trying to run this python script and have no idea what is going on. I set read/write permissions to the python folder, but nothing has changed. Any suggestions would be much appreciated. $ sudo ...
1
vote
0answers
14 views

Cannot launch Pydev5.0.0 in Eclipse3.8

I installed Eclipse3.8 in Ubuntu 16.04LTS, and my Java version is JDK8. I installed Pydev5.0.0 and I could see "PyDev for Eclipse" in "Installation Details". However, I could find pydev after restart, ...
-1
votes
0answers
12 views

Issues with installation of pygame [duplicate]

I tried to install pygame on ubuntu14.04 with: sudo apt-get install python-pygame after that I opened python2 and tried to import pygame python2 import pygame This actually worked, but the issue ...
0
votes
0answers
31 views

Removal of python-pip gives an error

Entering the following commands sudo apt-get purge/remove python-pip sudo apt-get autoremove gives this error dpkg: error processing python-pkg-resources (--configure): subprocess installed ...
28
votes
2answers
769 views

How to develop a System Indicator for Unity?

This is not a duplicate of How to create Unity indicators?. I'm looking for system indicator not application indicator. Backgound: From these two questions: How do I add or manipulate ...
2
votes
1answer
14 views

IPython closes when I try to start it

I was trying to install the latest version of IPython, but kept giving an exception error when cleaning up. I tried various ways to do this. Now I download it the 1.2.1-2 version, I start it and the ...
6
votes
3answers
739 views

A script for copying random folders

I'd like to realize a little project I've always had in mind. I have a vast music library on my desktop and I'm looking for a way/script to select a random amount of folders (say, 25 albums) and, if ...
1
vote
1answer
17 views

How do I install matplotlib dependencies?

How can I easily install all the non-Python dependencies I require before I can pip install matplotlib?
0
votes
0answers
26 views

How can I get a project from Ubuntu? [duplicate]

I'm a Computer Science undergraduate student. I'm looking for a opensource project for our 3rd year course Rapid Application Development(RAD). I am good in Python and Java languages. Where I can get a ...
0
votes
3answers
24 views

How to run a Python script not as '~$ python myscript.py' but as a single command '~$ myscript'? [duplicate]

I have a Python script which takes command line arguments. When I want to run the script I have to navigate to its directory and run: python myscript.py [arguments] How can I run it like: ...
0
votes
0answers
22 views

Can't use pip installed package on ubuntu

I am able to install a package and list them but I'm not able to execute them by the command line. What am I missing here? aj07mm@aj07mm-ThinkPad-X220:~$ python -V Python 2.7.11+ ...
0
votes
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 ...
3
votes
0answers
74 views

Latest python-pip with U16.04

In U16.04 when you do: pip install --upgrade pip you get: Collecting pip Using cached pip-8.1.2-py2.py3-none-any.whl Installing collected packages: pip Successfully installed pip-8.1.1 You are ...
1
vote
3answers
6k views

Python 2.7 ImportError: No module named repository

I'm completely clueless. I uninstalled, and re installed gi and python2.7. Do you guys have any ideas? ~ > /usr/bin/python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type ...
0
votes
1answer
29 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
17 views

ubuntu's multiple python installations…please help me

I want to pip install additional libs to my installation of python3.5 but ubuntu has 2.7 installed too by default and I don't have pip for 3.5 . I'm unsure how to get pip up and running on my newer ...
3
votes
0answers
43 views

making rgedit work in downgraded gedit (3.10.4) with ubuntu 16.04

I successfully downgraded to gedit 3.10.4 so that I could continue to use the rgedit plugin. While gedit appears to open and the rgedit menu appears, the rgedit buttons are not added to the toolbar ...
1
vote
1answer
5k 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?
2
votes
2answers
127 views

VIM python support on Ubuntu 16.04

I use ubuntu 16.04. My vim doesn't have python support. The thing is that I installed vim, vim-gnome, vim-nox, I surfed net for hours and tried to build vim from source, I deleted some stuff like ...
-3
votes
0answers
26 views

ubuntu software center not opening via terminal [duplicate]

I am encountering this problem , File "/usr/bin/software-center", line 140 print time.time() ^ SyntaxError: invalid syntax whenever i try to open software center via terminal. ...
-1
votes
0answers
18 views

Python,Gtk3: How to make the Progress bar pulsing while other stuffs are running

Based on Classes, i have window which contain a button and progressbar, whenever the button is clicked there two things should happen : 1 - should entried value from dialog pass to class ABCD ...
0
votes
1answer
14 views

Is there any apt-get/dpkg/aptitude option to get apt cache folder location?

apt cache folder default location is /var/cache/apt/archives. i work in a python script. is there any way to know cache folder location in code. like run a apt-get option. like: apt-get ...