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

learn more… | top users | synonyms

0
votes
1answer
12 views

Installing ubuntu packages within python script

I want to install following packages within my python script : python-pip python-sqlalchemy mongodb python-bson python-dpkt python-jinja2 python-magic python-gridfs python-libvirt python-bottle ...
0
votes
1answer
12 views

unmet dependencies issues while installing python 3.4 in ubuntu 14.04?

I have just upgraded my laptop(its been a week since i have bought it and not used much), while installing python 3.4. I was having some unmet dependencies issues which were as follows: This is the ...
1
vote
1answer
31 views

How to install Python 3.4.5 from apt?

I have Python 3.5 installed.I previously installed Python 3.4 from source and managed to uninstall it somehow. Now if I try to install Python 3.4 through apt-get install python3.4 , it returns ...
-1
votes
0answers
10 views

How to build deb file for ubuntu (code: python3)? [on hold]

I just want to create installable file (.deb) for my local(ubuntu 16.04) use only. Don't want to upload on pypi. So how can i build .deb package from my python3 project. Thank you.
0
votes
2answers
39 views

Python 3.5 is unable to access packages installed with pip3 like django

I have both python 2.7 and python 3.5 installed on my Ubuntu 16.04 LTS. I have also installed python3-pip to be used for installing external packages to python 3.5. Using pip3 I have installed django ...
0
votes
0answers
19 views

Getting data from a running program using Python

What i'm trying to do is get data from a running program. Basically it gives me values let's say numbers 1-10. I want to be able to "read" these numbers off my monitor. I was wondering if there's any ...
0
votes
0answers
18 views

can't create virtual env in ubuntu 14.04

Initially I followed this user's Q&A - How to set up and use a virtual python environment in Ubuntu? but this didn't work at all. When I do mkvirtualenv -p python3 test I get this ERROR: ...
1
vote
0answers
26 views

not getting the value of http_proxy using python

I have checked that there have an environmental variable by using this command : printenv | grep http_proxy and when i am trying to get this value by using python script it is returning None.here ...
0
votes
0answers
40 views

Can't run Python Script on double-click

I recently upgraded to Ubuntu 16.04 but lost all my installed programs for some reason and this is when my problem started. I could always run my scripts by double-clicking the icon, because I have ...
0
votes
0answers
71 views

How do I install python 3.5.2?

It's my first time using ubuntu so I don't know how to use it very well yet... How can i install python 3.5.2 ? It has already the version 2.7.12 . My Ubuntu version is Ubuntu 16.04 LTS (desktop).
0
votes
0answers
23 views

Python and PHP in Apache - 403 Error

I am doing some work on some servers. I added in python into my php, apache2, and mysql server. Now I just get 403 forbidden errors. I am using an online cloud workspace called cloud9. Here is my ...
0
votes
1answer
45 views

How can I install pip for python 3.3

I have installed python 2.7 and python 3.3 on server and now I need to install pip for python 3.3. Here's what I have tried so far: sudo apt-get install python3-setuptools sudo easy_install3 pip ...
0
votes
0answers
14 views

delay in blkid picking up new volume

My computer is running Ubuntu 16.04 LTS. I am writing a python3 script which starts an iscsi connection to my nas using iscsiadm and then runs a psql database cluster on there from my computer. My ...
0
votes
1answer
51 views

No module named 'encodings' after upgrading to 16.04

Hi I upgraded my Ubuntu to 16.04 but whenever I try to run a Python program or pip install (both Python 2.7 or Python 3.5) I get the following error: ImportError: No module named 'encodings'
0
votes
1answer
155 views

Why did removing 'python3' remove many other important packages from Ubuntu 16.04?

What I did: sudo apt-get remove python3 What I got in response : Reading package lists... Done Building dependency tree Reading state information... Done The following packages were ...
1
vote
1answer
31 views

Python - default locale is not working

This is the situation: In [1]: import datetime In [2]: import locale In [3]: locale.getlocale() Out[3]: ('es_ES', 'UTF-8') In [4]: locale.getdefaultlocale() Out[4]: ('es_ES', 'UTF-8') In [5]: ...
0
votes
0answers
124 views

several problems with python PIP

Maybe I am putting many different problems into one thread, but I just start by describing, what I am trying to do. I want LaTeX to be rendered in Python3 script. I decided to use matplotlib package ...
1
vote
1answer
35 views

VirtualEnv + Apt + Python3 Issue

VirtualEnv + Apt + Python3 Issue On 14.04 I've got an interesting problem trying to import a module. I have python3 and python3-apt installed and I can verify this with the following: chalbersma@...
0
votes
1answer
484 views

How to install Python 3.5.1 on ubuntu 16.04 LTS?

I want to install python 3.5.1 on my ubuntu 16.04 LTS. I have been searching but I still can't figure it out. I tried to find python 3.5.1 in the software center but I couldn't find it. Can someone ...
0
votes
1answer
86 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
2answers
57 views

pip3 install timestring

I am trying to install timestring library into python3.5 on ubuntu 16.04 using the command: pip3 install timestring Getting this error: Exception: Traceback (most recent call last): File "/home/...
1
vote
1answer
49 views

Installing python3-netcdf4 on Ubuntu 14.04

When I type sudo apt-get install python3-netcdf4 on Ubuntu 14.04, I get a message Unable to locate package python3-netcdf4. How do I install python3-netcdf4 on Ubuntu 14.04 ?
2
votes
1answer
143 views

How to ensure matplotlib in a Python 3 virtualenv uses the TkAgg backend?

I am using Ubuntu 16.04 with Python 3. Using apt to install matplotlib and then printing the matplotlib backend gives TKAgg, which is expected because Ubuntu has 16.04 has python3-tk installed. This ...
0
votes
2answers
109 views

what is gi.repository in python? [closed]

I see from a lot of tutorials that in python the statement "from gi.repository" is used to import lots of different things, like gtk,etc etc.. what library is it? is it correlated with github? ...
0
votes
0answers
30 views

Unable to import python module in python after installation

After installation of any python module using pip or apt-get I am unable to import it in python3. I am able to do so in python 2.7 .This probably is a naive question but I am a novice at using ubuntu ...
3
votes
1answer
334 views

How to install OpenCV 3.1 for Python 3.5 On Ubuntu 16.04 LTS?

How to install OpenCV version 3.1 on Ubuntu 16.04 LTS to work with Python 3.5.1? I tried this on a VM but obviously that is useful to do if you want to work with Python 2.
0
votes
1answer
47 views

Update default python3 version from 3.2.3 to 3.3.x version in Ubuntu 12.04 [duplicate]

I would like to upgrade my python3 version from 3.2.3 to 3.3.x version. I am using Ubuntu 12.04 Referred this link. Is it the same procedure to upgrade the python version? If so, then what must be ...
0
votes
1answer
72 views

Unable to use python3

Unknowingly i deleted the python folders in the / (root) directory, so I got this error when I tried to run python3. I reinstalled python3.2.3 version by manually downlading and installing with the ...
0
votes
0answers
71 views

Errors in installing virtualenv after installing to python 3.3.0 also

I am getting this error when I run the sudo pip install virtualenv command. I tried installing the python 3.3.0 version also which you can notice below. but I am not able to make the python3.3.0 ...
1
vote
1answer
36 views

Python 3.3 installation error - abort installation

When I try to upgrade python3 version, I am getting the following error sudo apt-get build-dep python3.2 Reading package lists... Done Building dependency tree Reading state information... ...
0
votes
1answer
92 views

How do i fix dependency issue with apport and apt-get (ubuntu 16.04 upgraded from 14.04)

I'm having trouble with dependencies and apt-get upgrade. I've looked around and tried a group of approches from this site and other stuff found on google. b@asus:~$ sudo apt-get upgrade Reading ...
1
vote
0answers
14 views

How to set Python 3 as default on Ubuntu 16.04 [duplicate]

According to the release notes Ubuntu 16.04 uses Python 3 by default and should not even include include Python 2: Python 3 Python2 is not installed anymore by default on the server, cloud ...
0
votes
1answer
55 views

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

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 ...
1
vote
1answer
177 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 https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-...
0
votes
1answer
2k 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 information......
12
votes
4answers
3k views

Why isn't python 3 the default python binary?

I installed Ubuntu and type python in a terminal window. I get Python 2.7 and not Python 3.5. According to the docs, Python 3.5 should come preloaded.
0
votes
1answer
40 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 &...
0
votes
0answers
54 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', '...
0
votes
1answer
48 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
44 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 :)
0
votes
2answers
267 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 ...
0
votes
1answer
45 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
27 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 ...
0
votes
0answers
60 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 ...
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 ...
3
votes
1answer
131 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, ...
4
votes
1answer
1k 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 ...
1
vote
1answer
57 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 ...
0
votes
1answer
90 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 ...
0
votes
1answer
182 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 ...