Questions tagged [python3]
Python 3 is the latest major version of Python, a scripting language used by many open source developers.
1,483 questions
737
votes
8
answers
1.7m
views
How to make 'python' program command execute Python 3?
The python program command executes Python 2. Python 3 can be executed using the python3 command. How can Python 3 be executed using the python command?
451
votes
9
answers
1.2m
views
How do I install Python 3.6 using apt-get?
I've tried the normal way, sudo apt-get install python3.6, but... well... that didn't work.
So, how would I go about it? (I'd preferably not build it on my own)
I'm using Ubuntu 16.04.
219
votes
19
answers
719k
views
ModuleNotFoundError: No module named 'distutils.util'
After updating to Ubuntu 20.04, whenever I run:
pip install <some package>
or
pip --version
it says:
adam@daryy:~$ pip3
Traceback (most recent call last):
File "/usr/local/bin/pip3&...
127
votes
3
answers
662k
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... ...
119
votes
10
answers
315k
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?
118
votes
2
answers
218k
views
python-is-python3 package in Ubuntu 20.04 - what is it and what does it actually do?
Having used Ubuntu 18.04 for a handful of years now, and reading that Python 2 has been removed from Ubuntu 20.04, I was looking forward to using the commands python or pip rather than python3 or pip3....
107
votes
8
answers
320k
views
How do I install Python 3.3?
I have downloaded Python 3.3 from the official site but no idea how to install it.
I'm using Ubuntu 12.04
96
votes
9
answers
571k
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?
92
votes
19
answers
483k
views
Problem with update-manager: No module named 'apt_pkg' in Ubuntu 13.10, having installed Python 3.4 on /usr/local/lib
I'm rather new to Ubuntu and I'm trying to run update-manager on Ubuntu 13.10. I get:
jacopo@jacopo-laptop:~$ update-manager
Traceback (most recent call last):
File "/usr/bin/update-manager", line ...
71
votes
8
answers
131k
views
Error: Command '['/path/to/env/bin/python3.7', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1
I just installed python3.7 on my 18.04LTS via the deadsnakes ppa:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.7 -y
Now I want to create a virtual environment with python3.7 -m ...
63
votes
8
answers
75k
views
"Your python3 install is corrupted"
I want to upgrade from Ubuntu 16.04.5 LTS to 18.04, so ran sudo do-release-upgrade.
After downloading and extracting bionic.tar.gz I get:
Can not upgrade
Your python3 install is corrupted. Please ...
60
votes
7
answers
59k
views
pyvenv-3.4 error: returned non-zero exit status 1
When trying to create a virtual environment using the included pyvenv-3.4 that comes with 14.04, it throws an error:
Error: Command '['/some/directories/bin/python3.4', '-Im', 'ensurepip', '--upgrade'...
56
votes
6
answers
303k
views
pip error on Ubuntu: externally-managed-environment × This environment is externally managed
I upgraded to Ubuntu 23.04. Now, when I run a pip command (installed using sudo apt install python3-pip), I get this error:
$ pip install --user <foobar>
error: externally-managed-environment
× ...
53
votes
2
answers
256k
views
How to install cPickle on Python 3.4?
I tried sudo apt-get install cPickle and python3.4-cPickle but it doesn't work.
52
votes
2
answers
51k
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 Terminal)....