Questions tagged [python3]

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

Filter by
Sorted by
Tagged with
9 votes
3 answers
11k views

Making python 3.3 default python 3 interpreter instead of 3.2

So, to keep it simple. Ubuntu 12.10 has python 3.2 pre installed and it is linked to "python3". I downloaded python 3.3 and it's command is "python3.3". However, I downloaded pySide for python3 from ...
user1873947's user avatar
9 votes
2 answers
28k views

python3 RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used

I have recently updated my Ubuntu from 19.10 to 20.04. During the installation and now when I am running apt update I see python related warnings: /usr/lib/python3.8/subprocess.py:838: RuntimeWarning:...
Michal Przybylowicz's user avatar
8 votes
3 answers
23k views

How to remove all traces of python from Ubuntu

I want to clean all traces of python from my Ubuntu. Is there any easy solution? To start with I guess I should remove all pip packages. I tried command as suggested here, but got bunch of failure ...
Rnj's user avatar
  • 199
8 votes
1 answer
38k views

pip --version returns SyntaxError (invalid syntax) after installation [closed]

OS: Debian 8 Python: v3.4.2 (uninstalled v2.7 and v3.5 in order to reduce possible root causes) I installed pip for Python 3 as per documentation: sudo apt install python3-venv python3-pip Afterwards,...
fuggi's user avatar
  • 671
8 votes
1 answer
29k views

"ModuleNotFoundError: No module named 'apt_pkg'" appears in various commands [closed]

I get the following error in various situations, for example when I try to start a package that is not installed: $ tldr Traceback (most recent call last): File "/usr/lib/command-not-...
Gal's user avatar
  • 195
8 votes
2 answers
34k views

"fatal error: Python.h: No Such File or Directory" when compiling python file to a c executable file?

I am trying to compile c from python. There shows the following errors after I executing the following commands: -Wall -I/usr/include/python3.5/config-3.5m-x86_64-linux-gnu/libpython3.5m.a -...
PaulTsai's user avatar
  • 115
8 votes
2 answers
40k views

ImportError: No module named builtins

I am porting my python application from python 2 to python 3. As python-3 provides utility 2to3 which converts python-2 code to python-3. import builtins giving error as ImportError: No module named ...
mrudula's user avatar
  • 477
8 votes
1 answer
34k 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 ...
Sylvain Pineau's user avatar
8 votes
1 answer
20k views

How do you install pip for python3.9.4?

I haven't found a way to install pip for python3.9 . When I run the command sudo apt install python3-pip it installs pip for pythpn3.8, not 3.9. If I try to use sudo apt install python3.9-pip it gives ...
Unnamed's user avatar
  • 303
8 votes
2 answers
19k views

Open terminal window and execute Python script on startup

I have a Python script which I would like to execute at every startup. I can run it by adding this to the startup applications: python3 /path/to/script.py That works, but it doesn't open a terminal ...
Sean Bone's user avatar
  • 634
8 votes
1 answer
6k views

How to install pygobject-3.0 in Ubuntu for compiling a project with meson?

I am trying to compile a project with meson, and I get the error ERROR: Dependency "pygobject-3.0" not found Which package should I install? The project lists python-gobject as a dependency,...
Archisman Panigrahi's user avatar
8 votes
2 answers
20k views

Ubuntu 16.04 Completely broken python3 + dpkg + apt-get!

Maybe somebody can help me through this hell: It all began as I encountered this error: https://askubuntu.com/a/1034266/570817 and I tried to somehow remove the ppa:jonathonf/python-3.6 installation ...
ElectRocnic's user avatar
8 votes
1 answer
4k views

Broken package click on Ubuntu 16.10

When I run /usr/bin/click, I get the following error: Traceback (most recent call last): File "/usr/bin/click", line 37, in <module> import click ImportError: No module named 'click' I ...
user502144's user avatar
8 votes
2 answers
8k views

"libpeas-WARNING **: Could not find loader 'python3' for plugin" when loading a pluging in gedit

I recently upgraded to Ubuntu 13.04 and I use gedit for a lot of things. I was trying to install some plugins that I use quite frequently and I came into some issues. First I installed the plugins ...
Jesse's user avatar
  • 282
8 votes
1 answer
47k views

Version `GLIBC_2.28' not found

I'm trying to install PyTorch on ARMv7(32-bit) architecture but PyTorch doesn’t have official ARMv7 builds so i tried this unofficial build. It installed successfully but when I import torch I get ...
A_reda97's user avatar
7 votes
3 answers
14k views

The following packages have unmet dependencies python 3.7

Randomly got this error while trying to sudo apt-get upgrade and already tried to run apt-get -f install without success, what should i do? Reading package lists... Done Building dependency tree ...
Eduardo's user avatar
  • 81
7 votes
3 answers
30k 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 ...
andreSmol's user avatar
  • 191
7 votes
4 answers
17k views

system cannot find alternative python3 versions on ubuntu 20.04

I want to update python3 to version 3.9, I ran sudo apt update sudo apt install software-properties-common sudo -E add-apt-repository ppa:deadsnakes/ppa sudo apt install python3.9 sudo update-...
Max Gabriel's user avatar
7 votes
2 answers
47k views

How to update Python to the latest version on Ubuntu 16.04

I am trying to update my python version but whenever I try: pip install --upgrade python the output is: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade ...
Andre's user avatar
  • 71
7 votes
4 answers
21k views

ModuleNotFoundError: No module named 'distutils.util' after upgrading to Ubuntu 20.04

After upgrading to Ubuntu 20.04 I started receiving this error ModuleNotFoundError: No module named 'distutils.util' for every pip command I run. I tried the solutions on ModuleNotFoundError: No ...
assembler's user avatar
  • 179
7 votes
5 answers
9k views

SyntaxError regarding async when attempting to run Jupyter in Python 3.7

On attempting to launch Jupyter on Python 3.7, I observe the following: $ jupyter notebook Traceback (most recent call last): File "/usr/local/bin/jupyter-notebook", line 11, in <module> ...
BlandCorporation's user avatar
7 votes
2 answers
4k views

Where is pypy for python 3.5 on bionic (18.04 LTS)?

The package pypy in bionic is compatible with Python 2.7.13 (5.10.0+dfsg-3build2, Feb 06 2018, 18:37:50) I see no "pypy3" in bionic. I see a snap for pypy3, but only the edge version is up-to-date ...
nealmcb's user avatar
  • 3,647
7 votes
1 answer
5k views

pyvenv-3.4 disappeared in Ubuntu 14.04.3?

This is what I was doing to create a venv in Python 3.4 on Ubuntu 14.04.3 LTS until last week: » pyvenv-3.4 --without-pip venv I was doing that because of this. But since yesterday: » pyvenv-3.4 --...
blueFast's user avatar
  • 818
7 votes
7 answers
20k views

how to install python3 in wine?

How can we install python3 in wine for 32bit ubuntu ? Using winetricks python2.7 is possible but my app is written in python3 I don't have windows to test my application so I am going this hard ...
Rohit Karadkar's user avatar
7 votes
1 answer
22k views

Trying to create a python virtual environment but getting OSError

I have installed python3.3, pip-1.5, ditribute-0.7.3, virtualenv-1.11. I am giving the below command to create virtual environment virtualenv --no-site-packages test I am getting the following ...
swamydkv's user avatar
7 votes
1 answer
13k views

How to fix "bad interpreter" problem when running pip3 on Ubuntu 20.04 WSL?

I have Cygwin on Windows10 and now I've installed Ubuntu 20.04 (WSL) and all it seems fine, except for Python3. I've intalled python3 and pip3 but when I try to use it I get the "bad interpreter&...
Ger Cas's user avatar
  • 173
7 votes
1 answer
2k views

Backend for python3 module matplotlib

I'm trying to use python3 to plot graphs. The only back-end for matplotlib that seems to work is tkAgg (Tkinter), however this looks like it has been designed in the Stone Age. So I was trying to ...
Minos's user avatar
  • 1,771
6 votes
1 answer
20k views

ansible: How to avoid warnings

I am using ansible for monitoring my home computing net, which consists several Linux machines (x64 and Raspberries). How can I avoid warnings from every Raspberry client? [WARNING]: Platform linux ...
Pascal Klein's user avatar
6 votes
1 answer
8k views

Lower the Python3 version

I'm using Ubuntu 20.04 and default Python3 version is 3.8.2 but I want to use the Python 3.7.6 . I don't care if the Python 3.8.2 will be uninstalled or not. I only want to make sure every time I use ...
mhn2's user avatar
  • 63
6 votes
2 answers
15k views

CommandNotFound.db.creator import DbCreator on ubuntu [duplicate]

after installing Python 3.7 and Mysql on Ubuntu 18 LTS, I am getting following error after firing command "sudo apt update" Get:7 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 ...
Vikas Khengare's user avatar
6 votes
3 answers
5k 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 3....
R. Southee's user avatar
6 votes
3 answers
58k 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 mysql-...
ThriceGood's user avatar
6 votes
2 answers
9k views

Can't remove python 3.10 from ubuntu 20.04LTS

Ubuntu 20.04 comes with python 3.8 as default version. I installed python 3.10 by adding deadsnakes ppa. While running "sudo apt remove python3.10" it gives following error. Reading package ...
shailesh_07's user avatar
6 votes
2 answers
19k views

python3 is not supporting gtk module

I have Ubuntu 14.04 with python-2.7 and python-3 support. I am porting my python application from python-2.7 to python-3. I have example.py file which is importing below modules. and I #!/usr/bin/...
mrudula's user avatar
  • 477
6 votes
1 answer
35k views

Trying to install python3-pip, which has no installation candidate

Ubuntu 20.04.1 LTS Desktop My default Python version was 2.7.18 for some reason. I would like to update it to Python3 so I can install python3-pip onto my desktop. After running: sudo update-...
Leonardo's user avatar
6 votes
1 answer
14k views

Ubuntu 18.04: Permission Denied:.ipynb_checkpoints when trying to create a new python3 notebook in jupyter

I am starting jupyter notebook from the terminal, and am not using anaconda. When I try to create a new python3 notebook I get this error message: I have tried the method in this link Cannot open ...
ashgeo's user avatar
  • 61
6 votes
2 answers
10k 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): ...
Eamonn Doyle's user avatar
  • 1,188
6 votes
1 answer
50k views

How to install `requests` module for `python3`?

I wanted to download Requests: HTTP for Humans module for python3. So I started with sudo apt-get install python3-pip sudo pip3 install requests --upgrade There were no errors. However, when I try ...
enedil's user avatar
  • 982
6 votes
1 answer
30k views

Install Pillow for Python 3

What's the best way to install Pillow for Python 3?
Garrett's user avatar
  • 720
6 votes
3 answers
10k views

How can I remove python 3.6 installed from deadsnakes PPA after upgrade to Ubuntu 18.04?

On Ubuntu 16.04 I installed Python 3.6 from the deadsnakes PPA. Now I upgraded to Ubuntu 18.04 which builds on top of Python 3.6 but instead of removing the old version of Python 3.6 it kept the ...
Oli4's user avatar
  • 137
6 votes
2 answers
5k 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 ...
Federico Magliani's user avatar
6 votes
1 answer
17k views

E: The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu disco Release' does not have a Release file [duplicate]

I have been trying to install Devstack and this happened while "./stack.sh".
vipul petkar's user avatar
6 votes
1 answer
8k views

Install OpenCV 3 on Ubuntu 17.10

I'm using Ubuntu 17.10 and I want to install OpenCV 3 on it. How can I install OpenCV for Python 3 on Ubuntu 17.10?
Ali Razmdideh's user avatar
6 votes
4 answers
8k views

Can't Install or remove anything on Ubuntu 16.04 because py3clean and py3compile not found

I am unable to install or upgrade anything on Ubuntu 16.04.I am missing package python3-software-properties and can't install it anyhow . I have posted the various tracebacks. I tried installing these ...
Sarfraz Ahmad's user avatar
6 votes
1 answer
22k views

How to install scipy with pip3?

I am trying to install scipy for python3.x and I am trying to install it with pip3 sudo pip3 install scipy But I have the following errors: Downloading/unpacking scipy Running setup.py (path:/tmp/...
alvas's user avatar
  • 2,917
6 votes
2 answers
30k views

pip fails with ReadTimeoutError

I'm trying to install jupyter notebook using pip, so I first installed pip3: sudo apt-get install --no-install-recommends python3-pip Then I ran: sudo pip3 install jupyter While downloading the ...
Ravexina's user avatar
  • 55.7k
6 votes
1 answer
6k views

ubuntu 23.04 python3 no module named ensurepip

I am pulling my hair out over this issue. I am not a python user so following random instructions I find anywhere to solve this issue but nothing works. Basic problem is that I am trying to use ...
nobody special's user avatar
6 votes
1 answer
16k views

How to Install Python 3.X.X. Properly

I have installed and configured python from online tutorials, python books, and other various sources in the past only to find myself digging through forums when things go wrong and piecing various ...
Kryptos's user avatar
  • 203
6 votes
1 answer
1k views

Errors while upgrading from 16.04 to 16.10

I did sudo apt dist-upgrade to upgrade my Ubuntu distro but faced this error Cannot start click due to a conflict with a different locally-installed Python 'click' package. Remove it using Python ...
gautamprajapati's user avatar
6 votes
1 answer
4k views

pip is not included in Python3

I have 14.04. I read on the pip readthedocs that pip is included by default with Python 3. When I installed Python 3 on Windows it was there, but I'm getting pip command not found on Ubuntu. I checked ...
Malik A. Rumi's user avatar

1 2
3
4 5
29