Python 3 is the latest major version of Python, a scripting language used by many open source developers.

learn more… | top users | synonyms

-1
votes
0answers
9 views

Issues with installation of pygame

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
13 views

Facing problem while running python3 tkinter while python 2.7.11+ exists on my ubuntu

I am new in python, trying to run a very simple python GUI program just for testing i get the following error $ python3 Desktop.py Traceback (most recent call last): File "Desktop.py", line 1, in ...
-1
votes
0answers
28 views

Python Beginner [on hold]

I'm trying to use python, and after some week of video tutorial and books I decided to write a piece of code. The program itself it's childish, basically what it does is to give you the real name of a ...
0
votes
1answer
14 views

Cannot reinstall python3 on ubuntu 14.04

I think that I accidentally broke Python3 and was unable to do anything. I read somewhere that the solution was to remove python3 and reinstall it, but I got yet another problem: I was able to remove ...
0
votes
0answers
23 views

IPython3 launch error

Simply, I typed $ ipython3 in a bash shell, only to get Traceback (most recent call last): File "/usr/local/bin/ipython3", line 9, in <module> load_entry_point('ipython==1.2.1', ...
-1
votes
0answers
13 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 ...
-3
votes
0answers
31 views

dpkg: unrecoverable fatal error [duplicate]

Trying to run Software Update and get message Package Installation Failed. Then in terminal I ran: Update && Upgrade sudo apt-get update && sudo apt-get upgrade Got the following ...
0
votes
0answers
12 views

terminator not starting when default python is python3.4 but works if it is python2.7

On Ubuntu 15.10 when changing the symlink /usr/bin/python from python2.7 to python3.4 then terminator won t start anymore. Do you know what the problem could be and how to fix it? Thank you :)
4
votes
1answer
289 views

Install TensorFlow with Python3 on Ubuntu 16.04

When I try to install tensorflow package with pip3 on Ubuntu 16.04 I obtained this error message: The directory '/home/federico/.cache/pip/http' or its parent directory is not owned by the current ...
4
votes
2answers
3k views

How to update to the latest numpy and scipy on Ubuntu 14.04LTS

On my Ubuntu 14.04LTS, for python3, I have >>> import numpy >>> import scipy >>> numpy.__version__ '1.8.2' >>> scipy.__version__ '0.13.3' I want to update ...
0
votes
2answers
56 views

Can't upgrade pip for python3 [duplicate]

I have pip installed for python3: $ pip3 -V pip 1.5.4 from /usr/lib/python3/dist-packages (python 3.4) If I try to upgrade to Version 8, this is what I get: $ sudo pip3 install --upgrade pip ...
-1
votes
0answers
30 views

Python on Ubntu

I m using the below version of ubuntu. 3.13.0-77-generic #121-Ubuntu I want to learn python and I am completely new to python. Rather than downloading the python bundle I directly moved to python ...
0
votes
1answer
15 views

Python 3 AppIndicator3: What is the dependency?

I'm packaging an app I wrote in Python 3 which uses: from gi.repository import AppIndicator3 As I'm listing the dependencies, I have been unable to determine what package contains AppIndicator3. I ...
-2
votes
0answers
34 views

how do i use pyton 2 and 3 in jupyter?

I installed today python 3.5.1 and jupyter but i can only use python 2 in jupyter notebook?. I just started with linux kali before this i used only windows and wanted to learn linux and ...
0
votes
0answers
20 views

Install python and django on ubuntu 14.04

I am new in python/django and following this link and "Global Install through pip(section)" for installation, when I run apt-get install python-pip, I get below error aagyat@ubuntu:~$ sudo apt-get ...
-1
votes
0answers
72 views

MAAS 1.9 on UBUNTU 16.04 , Main Problem Python Version

UBUNTU 16.04 I noticed MAAS 2.0.0 Beta4 not support juju until MAAS 2.0.0 Beta 7. Until then I need: 1) Install MAAS 1.9 on my machine I can find MAAS 1.9 related package here: ...
0
votes
2answers
33 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 ...
4
votes
1answer
4k views

How to install sympy for Python 3.4

I installed the Python scipy stack using the following command taken from here sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy ...
0
votes
0answers
37 views

rhythmbox crashes due “Failed to import the site module”

I updated my machine from 15.10 to 16.04 a few days ago. Now I have to face this strange Issue: rhythmbox tells me, that it Failed to import the site module and crashes, because python3.5 is missing ...
1
vote
0answers
33 views

Biogeme fails to install and run on Ubuntu 16.04

I wanted to ask about the installation of one of most important open source freeware for discrete choice modeling data estimation: Biogeme. I am trying to install it on my machine (Thinkpad x201, ...
5
votes
2answers
1k views

No python intepreter in vim for Ubuntu 16.04

I've recently installed Ubuntu 16.04 and in the Release Notes it says VIM defaults to python3 On my fresh install of Ubuntu 16.04 I installed vim with the following commands $ python3 -V Python ...
43
votes
6answers
87k views

How to install pip for python 3 in ubuntu 12.04 LTS

I am trying to install the Pillow module for python 3.3, but for that I need to install pip. Every time that I install pip it installs for python 2.7, any help?
1
vote
1answer
34 views

missing package CommandNotFound

I recently updated from 15.10 to 16.04 and now my python3 seems to be messed up. Before the upgrade I had python3.4 and python3.5.1(manually) installed. The upgrade removed python3.4 and replaced it ...
1
vote
2answers
9k views

unable to install/import tkinter

I got a pretty confusing Problem: I build a python program using tkinter. Then I dist-upgraded my ubuntu 13.10 (amd64) to ubuntu 14.04 LTS, now I tried to run my tkinter program. My compiler told me ...
0
votes
1answer
63 views

how to install numpy for python3

I need help with installing numpy to Ubuntu 16.04. after: $ pip3 install numpy come up always: PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/numpy' What to ...
1
vote
2answers
976 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
15 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 ...
2
votes
1answer
25 views

How to install a simle python script [closed]

How do I 'install' a python script so I can run it when ever I want? My script looks like: #/usr/bin/env python import os; while True: comm = input(); os.system(comm); But when i try to ...
1
vote
2answers
90 views

ANACONDA - I have to type export PATH=~/anaconda3/bin:“$PATH” everytime I rerun the terminal

Whenever I open a terminal, I have to write export PATH=~/anaconda3/bin:$PATH to use any feature of anaconda I want a persistent path.
0
votes
2answers
1k views

Django 1.8 gets installed in Python 2.7 instead of Python 3.4

I have to versions of Python installed, 2.7 and 3.4. I installed Django 1.8 as recommended on the Django tutorial. However it got installed in Python 2.7 instead of Python 3.4 so when I type 'import ...
0
votes
1answer
35 views

Want to run a .py program as in terminal at start up

I want to run a .py program as my computer starts up . I went to startup application and selected that .py program to run. But that did not work , terminal did not open. What to do?
1
vote
2answers
39 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
0answers
43 views

Python3-venv not installed ubuntu 14.04

Fresh install of ubuntu gnome 14.04, followed by dist-upgrade one of the first things I tried to do was create virtual environment for python python3 -m venv flask gave me The virtual ...
2
votes
2answers
515 views

No module named 'gdbm'

I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get: No module named 'gdbm' that normally displays ...
0
votes
0answers
51 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?
6
votes
2answers
10k views

Cannot install scikit-learn in Python 3.4 in Ubuntu 14.04

I am trying to get scikit-learn to Python 3.4 in Ubuntu 14.04. When a run the command: sudo pip3 install -U scikit-learn I get scikit-learn loaded into Python 2.7. I have also tried to use: sudo ...
0
votes
0answers
31 views

How do I uninstall python2.7 on 15.10?

I have 2 versions of python installed on my computer, not using pythonbrew but as 2 seperate packages (2.7 as python and 3.5 as python3), I'd like to remove 2.7 and reinstall 3.5 because this causes ...
0
votes
3answers
3k views

trying to install mysql-connector for python 3

my experience is minimal with Linux so i need a little help! i am trying to install the python mysql-connector for python3.2, i was able to use pip to install it for python2.7 with 'pip install ...
0
votes
0answers
62 views

Buildozer asking for AIDL install

I am having Ubuntu 15.10 with Python 3.5 libraries installed. Pycharm-Community as my IDE and kivy installed. I am trying to build a simple project for my android application, everything goes fine, ...
1
vote
2answers
33 views

I removed Python 3.4 physically, is there anything I can do to avoid having to reinstall system?

Fristends, So while trying to install a python package I made a horrible mistake and removed Python 3.4 (if you are interested in how did I come up with it below is the link to my question on ...
0
votes
1answer
48 views

Problem installing python3-scipy

I've got ubuntu 15.10 and started a transition to python3. So I installed python3, python3-numpy and python3-matplotlib (and maybe a few more), but when I install python3-scipy, I get the following ...
0
votes
1answer
26 views

How can I save to an external HD, using IDLE3?

I'm using the IDLE3 GUI on Ubuntu 14.04 Trusty, and I was wondering if anybody knows of a way to save to a different partition/external drive (from what Ubuntu is installed on) from the IDLE GUI? The ...
9
votes
1answer
10k views

What's the easiest way to get Vim with Python 3 support?

I have Ubuntu 14.04 installed and Vim in its repos is compiled without Python 3 support. Because of that, python-mode plugin can't work with Python 3 code. What's the easiest way to get Vim with ...
0
votes
0answers
44 views

Install uwsgi via pip

I am running on 15.10 and I have tried the following command: pip install uwsgi but it complains that it is unable to find iconv during linking gcc -pthread -o ...
0
votes
0answers
31 views

How to create a portable Python?

Is it possible to install Python (the Python interpreter together with some of the dependencies it needs to run) into a folder on the users home directory or a usb drive and move this installation ...
-1
votes
1answer
33 views

how to import pymongo in python3 without virtualenv?

I'm new in python and I am starting a new project with mongodb and python3, but when I import pymongo in my script it give me the following error: ImportError: No module named 'pymongo' Here is my ...
60
votes
7answers
86k 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
3answers
209 views

No module named 'numpy'

Actually I am shifting from Windows to Linux. Using pycharm on Windows I have a python script that requires numpy and matplotlib to run, so I installed them on my Linux system using sudo apt-get ...
0
votes
2answers
28 views

Why am I getting notices about File Manager needing to restart?

For a week now I have been getting this notice that File Manger needs to restart with a restart button and cancel button. When I press the restart button nothing happens, that I can tell. The notice ...
0
votes
1answer
6k views

How to install Python 3.5.1 on Wily Werewolf 15.10? [duplicate]

Python 3.5.1 came out on December 7th 2015 and as a beginner Python coder I would like to try the very newest version on my Ubuntu installation. At the moment Wily Werewolf 15.10 ships version 3.4 and ...