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

learn more… | top users | synonyms

0
votes
0answers
3 views

NLTK says it's installed with Python 3.4 but import cannot locate it

I know similar questions have been asked before but I've spent hours searching the web and reading other questions and have not found a solution to my problem. I'm on Ubuntu 15.04, trying to install ...
23
votes
5answers
50k views

How to create a virtualenv with Python3.3 in Ubuntu?

I'm running Precise Pangolin amd64. I installed Python 3.3 from ppa:fkrull/deadsnakes. Now I want to actually use this new Python version in a virtualenv. But How can I do this? I get the following ...
0
votes
3answers
3k views

Import error :No module named MYSQLdb

I have a problem so a connection a python to database local of MySQLdb. Message of error is: import MYSQL ImportError:No module named MYSQLdb. This is a script in python 3.4 to connection my ...
0
votes
0answers
13 views

Upgrade default python3 version in Ubuntu 14.04 from 3.4.0 to 3.4.2

Ubuntu has a default python3 version of 3.4.0. How do I upgrade this to 3.4.2? Do I get the tar.gz package from the python website?
1
vote
2answers
24 views

pip installs Python modules in python 2.7 rather than 3.4

I am trying to use pip to download and install python packages. I am using Python 3.4 on Ubuntu 14.04 I attempted sudo pip install paperclip, for example. It gets installed to ...
4
votes
2answers
2k 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 python ...
3
votes
2answers
964 views

How to create a deb package for a python3 script?

I have one Python file, main.py. I would like to be able to make a .deb package from it, and then be able to run main.py by typing the package name from the terminal. It is written in Python 3, so the ...
0
votes
0answers
5 views

Would there be any disadvantages to using Pyglet for GUI programming?

On Linux systems (such as Ubuntu), would it present a problem to program a GUI (for a media player) using OpenGL? I don't like WXPython b/c it's ugly as poop and PyQt requires a license when being ...
0
votes
0answers
18 views

Scipy / Numpy on Ubuntu 14.04 [duplicate]

I just installed Scipy / Numpy on my Ubuntu 14.04 machine. The problem is when I try to type the import numpy or import scipy into the IDLE Python 3.4.0 Shell, I get the following error (just replace ...
0
votes
1answer
53 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
0answers
20 views

Installing latest version of Python on Ubuntu 14.04 LTS without building from source

I am looking for a reliable choice. How to install Python 3.4.3 on Ubuntu 14.04 LTS without building from source?
1
vote
1answer
42 views

apt-get update high cpu http process

I also asked this question here. When I do apt-get update, it keeps on updating. I stopped the process at 22 Gb - I just canceled it... Any idea about what to do? ot sure if related, but HTTP ...
1
vote
1answer
74 views

NLTK, installed in python 2.7 but not working in python 3.4

I just installed nltk when my default python was the 2.7 version, now when i open the python3 (3.4 version), i cant import nltk, is there any solution to this, to make nltk available for both versions ...
2
votes
2answers
1k views

Import error when running update manager

It seems like I am getting some error related to Python, but I am not sure why I am getting it. When I ran Software Updater (in 12.10) from unity, it didn't even fire up. When I did this from the ...
2
votes
0answers
40 views

Ubuntu 14.04 - Modify OpenVPN files manually

I am using a VPN (Private Tunnel) to download stuff / play games at dorms (ports are blocked, VPN allows me to bypass that). I also am trying to create a script in python that allows me to create new ...
0
votes
1answer
58 views

virtualenvwrapper + python3: invalid syntax

On Ubuntu 14.04 I run mkvirtualenv -p /usr/bin/python3 myvenv And I get Running virtualenv with interpreter /usr/bin/python3 Traceback (most recent call last): File ...
0
votes
0answers
19 views

Messed up system by uninstalling Python3 - Help!

I have limited Ubuntu experience and seem to have messed up my system pretty good. I am running Ubuntu 14.04. I wanted to upgrade Python3 to the latest version - 3.4.0 was installed and I wanted to ...
1
vote
2answers
50 views

Python 3.4 and virtual environment's pip

I create a new virtual env but pip is always the "global" one $ python3 -m venv MyVenv $ source Myvenv/bin/activate (MyVenv)$ which pip /usr/local/bin/pip and I don't know why. I want to use the ...
5
votes
2answers
3k 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 ...
33
votes
5answers
35k 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?
4
votes
1answer
4k views

Beautiful Soup 4 not working with Python 3.4.0

I am using Ubuntu 14.04 64 bit Operating System . I installed Beautiful Soup 4 using this command : sudo apt-get install python-bs4 With Python 2.7.6 , I had no difficulty importing the bs4 ...
0
votes
0answers
29 views

Python3 code not executing in Apache2.4.10(ubuntu)

<VirtualHost *:80> <Directory /var/www/test> AddHandler cgi-script .py Options +ExecCGI DirectoryIndex index.py </Directory> # ...
6
votes
2answers
62k views

How to find python installation directory on ubuntu

I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path on ubuntu shell ? Is there any way I can let shell ...
0
votes
0answers
30 views

.desktop-file two part exec line

I am trying to get bleachbit to run. Unfortunately I get the error, that it could not import gtk. It seems that this is due to me having python 2 & 3 installed. Starting bleachbit over the console ...
0
votes
1answer
177 views

how to use python 3's pip?

I want to switch my project from python 2.7 to python 3.4 and I want to use python3's virtualenvwrapper and pip. I have tried sudo apt-get install python3-pip, easy_install3 pip and python3 ...
1
vote
2answers
2k views

How to install pyzmq for iPython Notebook in a Python 3 virtual environment?

I wanted to use iPython Notebook in Python 3 on Ubuntu 14.04. Because I have both Python 2.7 and Python 3.4 installed on my system--and for other implementation-specific reasons--I decided to use a ...
1
vote
0answers
79 views

vim with python3 compatibility

So I followed this way What's the easiest way to get vim with python 3 support? which didn't work and this one http://www.xorpd.net/blog/vim_python3_install.html that did work. the thing is each ...
2
votes
1answer
81 views

How to get the package versions corresponding to Unity 7 launcher applications?

I'd like to know the Ubuntu package version of all applications locked into my Unity (7) Launcher from the command line. The command should return a list of packages names and their versions, ...
0
votes
0answers
23 views

Help writing an Upstart script

On my Ubuntu 14.04.2 server there's an installation of ownCloud with its News app. Now, for some reason or another, a couple of days ago the app stopped pulling new articles via owncloud cron.php. ...
0
votes
2answers
410 views

pip3 installs failing

I installed pip3 using apt-get install python3-pip however when I try to install any package I'm getting this type of error. xxxxx@xxx:~$ pip3 install requests Traceback (most recent call last): ...
0
votes
1answer
73 views

how to send desktop notification using python3.4?

I have a python3.4 script. I would like to send to the desktop at a moment a notification. How do I handle this in python? Can I use notify-send? I'm using Ubuntu 14.04 #in my script if something: ...
6
votes
1answer
7k views

How to create Excel xlsx files from a script?

I'm looking for packages available in Ubuntu main/universe repositories able to create Excel 2007+ xlsx files from a script (python or perl) My requirements: 100% compatible Excel XLSX files. Solid ...
1
vote
0answers
128 views

iPython frontend and kernel versions are incompatible

I have just upgrade my OS from 14.10 to 15.04. Spyder(Python 3.4) with iPython was working perfectly in 14.10. However, after the upgrade, iPython console failed to start up. My python version I am ...
22
votes
5answers
40k 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?
0
votes
1answer
45 views

index out of range? [closed]

# load parameters file yml = yaml.load(open(sys.argv[1])) # imports for pkg, functions in yml['imports'].iteritems(): stri = 'from ' + pkg + ' import ' + ','.join(functions) exec(stri) ...
0
votes
1answer
185 views

VIM error after installing python3 in ubuntu 15.04

I have a fresh installation of the latest ubuntu 15.04. I installed VIM using sudo apt-get install vim It was working fine. Later I installed python3 and pip3. sudo apt-get install python3 ...
0
votes
0answers
39 views

Ubuntu-sdk Kits, mkspec and dbus errors

This is a double part issue : When I launch the ubuntu sdk I get the following message in the General Messages pane: Traceback (most recent call last): File ...
31
votes
2answers
26k views

'unsupported locale setting' fault by command-not-found

I recently installed Ubuntu 12.10 by keeping the home folders from Linux Mint 13 distribution. The system installed fine, but at the beginning everything was in Chinese (even the text in the ...
2
votes
1answer
161 views

How to install PyQt for python3 in ubunt 14.10?

I found some tutorials online for earlier versions of Ubuntu but they didn't seem to work on Ubuntu 14.10, either that or I was doing it the wrong way, I want to use QtDesigner to design a GUI, use ...
2
votes
1answer
96 views

Missing REQUIRED dependency: python3-dbus [how to install python dependencies]

I am trying to update HPLIP 3.14.3 to 3.15 but is not available through the software centre thus I am installing it from here. However I am having difficulties in the automatic installation due to ...
0
votes
1answer
27 views

How update pygobject without breaking any dependency?

I want update the Pygobject of my system from the official repository. The last version on official repository is 3.16.1, but in the official package for Ubuntu is 3.12.0. I tried uninstall this ...
1
vote
0answers
66 views

Ubuntu 14.04 - Python 3.4 UnicodeDecodeError

Recently I've made an update, and I've started getting these errores in some programs (in 2 indicators for Unity, specifically): File ...
-1
votes
1answer
105 views

python3 - ImportError: No module named '_chipset'

I tried to run python3 script as follows : $python3 quick_dump.py ...but every time I get output as : ImportError: No module named '_chipset' I just watched the quick_dump.py script imports ...
0
votes
1answer
81 views

Gtk Drawing Area not always rendering when inside a scrolled window

I have a Drawing Area inside a Viewport inside a Scrolled Window. The image renders fine when the Drawing Area fits inside the Scrolled Window. But when i request a size larger than the Scrolled ...
0
votes
1answer
663 views

Python's ImportError: No module named repository

I had three versions of Python installed; 2.7, 3.2 and 3.4 When I had just 2.7 and 3.2, everything was fine. But after installing 3.4 manually from source, things began to break down. 3.4 did not have ...
0
votes
0answers
274 views

sudo apt-get install python3-pip not working

I installed pip3 using the command sudo apt-get install python3-pip After installing, I checked the version using pip3 --version However, it gives an error bash: /usr/local/bin/pip3: No such ...
2
votes
1answer
101 views

pip not included in python3 [duplicate]

I have 14.04. I read on the pip readthedocs that pip is included by default with python 3, and when I installed python 3 on Windows it was there. But I'm getting pip command not found on Ubuntu. I ...
1
vote
1answer
33 views

How to transform the unity launcher into a led chaser?

To celebrate April Fools' Day, I'd like to have a super notification mechanism. Would it be possible to transform my unity launcher into a led chaser? Like this:
25
votes
6answers
140k views

How to install Python 3.4 on Ubuntu?

If I open Terminal and type in python, I see the version is 2.7.4. How do I get python 3.4? And do I need IDLE if I have sublime text?
0
votes
2answers
42 views

How can I use the site-package of python?

I have Ubuntu 14.04 LTS. I have got some site-packages for python via pip, but they work for python2.7. how can I use these site-packages in python3.4 IDLE?