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
0
votes
0answers
14 views

Deja dup not working in 20.04

I'm trying to create a backup using deja dup backup tool. When I click Bakcup now... I'm getting the message: In order to continue the following packages need to be installed: python3-pydrive I'...
0
votes
0answers
21 views

pip3 no longer working after installing Python 3.8

I installed python3.8 on my Ubuntu 18.04.4. Now pip is no longer working. When I try to install something it gives this error: Traceback (most recent call last): File "/usr/local/lib/python3.8/...
0
votes
0answers
14 views

installing PIP on Ubuntu 20.04 Linux with Python 3.8 E: Package 'python3-pip' has no installation candidate [duplicate]

Trying to install pip with Ubuntu version 20.04, Python version 3.8 on my Oracle virtual box. Tried everything to install pip but failed Steps tried $ sudo apt update $ sudo apt install python3-...
0
votes
1answer
35 views

“print()” is producing undesired output in Visual Studio Code [closed]

I have written a Python 3 code, which is: i = int(input("enter number: ")) print("enter",i) I'm expecting an output as: enter number: 5 enter 5 However, I'm getting this: enter number: 5 ('enter',...
-1
votes
0answers
36 views

tkinter in python3 in Ubuntu 20.04.4 [duplicate]

I have a system (12 interconnected programs) that use python with tkinter. I have tried to install tkinter in python3 on Ubuntu20.04.4 but can not get it to install or operate correctly. What can I do ...
1
vote
0answers
82 views

HPLIP Driver install fails on Ubuntu 20.04

I recently upgraded a 18.04 release to 20.04 (early, I know), and wiped away my manually installed 'hplip' package (3.16.11) and installed the official package from the release (3.20.3+dgfsg0-2). All ...
0
votes
0answers
24 views

I try to install M2Crypto, but i got this error

I try to install M2Crypto, but i got this error I have ubuntu-20.04-desktop-amd64 pip3 install ./M2Crypto-0.24.0.tar.gz failure screenshot ERROR: Command errored out with exit status 1: command: /...
1
vote
2answers
26 views

how to execute a file/script when i save a file

for example; #!/bin/python3 print("Hail Hydra") so , how to execute this file without typing python3 *filename.py on my terminal when i save this
0
votes
0answers
22 views

Apt_pkg seem to be missing in upgraded python

I have upgraded my system python to 3.6 (3.6.10) from 3.5. My system is Ubuntu 16.04. For some reason I think that my python3.6 version has not been fully installed. For example if I examined the ...
0
votes
1answer
43 views

Ubuntu 20.04 + recent software update + terminal, software updates, software updater not working

I am on dual boot with Windows 10. I initially had Ubuntu 18.04 and updated to Ubuntu 20.04 last month. I usually run the software updater from time to time. Last week, I ran the software updater ...
0
votes
1answer
28 views

Scapy Module not found when running python script with SUDO

I have written a python script that uses from scapy.all import * and the sniff() function requires elevated privilege, so when I run python3 scapyScript.py I receive the error PermissionError: [Errno ...
-2
votes
0answers
12 views

django, how to handle forms with SlugField - the form is always invalide [closed]

Someone can help find out why I keep getting form invalid? The code worked perfectly for create poste view. *def post_update(request, year, month, day, post): author = get_author(request.user) ...
-1
votes
3answers
61 views

Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink [duplicate]

Context: I am looking to upgrade to Ubuntu 20.04 LTS I performed following steps: $ sudo apt update $ sudo apt upgrade -y $ sudo reboot $ sudo apt --purge autoremove $ sudo apt install update-...
19
votes
2answers
3k views

Python 3.8 suddenly won't run when used in the shebang, but runs when invoked directly

I am utterly baffled and mystified. I have been happily coding and running Python scripts from the terminal (and also running the Python interpreter). I went to bed a happy user of Python, but ...
0
votes
1answer
59 views

Working with several installed pythons

I have Ubuntu 18.04, so it has python3.6 installed by default. I can call it using python3 Ubuntu doesn't have any python2 installed now (by default also). I want to use python3.7 for my projects. ...
0
votes
1answer
32 views

Using 'sudo' with `virtualenv`

I am working on a virtual environment: sk, which I made this way: $ mkvirtualenv sk -p python3 I use workon sk to activate this environment and work in it. When I try to run some functionality of ...
0
votes
0answers
40 views

Module not found error on running command sudo apt update after upgrading to ubuntu 19.10 from 18.04

Recently upgraded from ubuntu version 18.04 to 19.10, now my APT has stopped functioning properly and won't let me perform sudo apt update. On top of all this when I try to run a simple python script ...
1
vote
1answer
145 views

Reinstallation of Ubuntu WSL 18.04 and Python3-pip installation issues

I deleted and reinstalled Ubuntu by following the instructions here but the same issues with pip installation persisted even after I've reinstalled Ubuntu. I suspect that the re-installation process ...
2
votes
3answers
186 views

How to remove Python 2 from Ubuntu 20.04?

I've upgraded recently from Ubuntu 18.04 to 20.04. But I can see that Python2 is still the default instead of python 3.8.2. $ python -V Python 2.7.18rc1 $ python3 -V Python 3.8.2 Is it possible ...
1
vote
0answers
32 views

Install python modules not in the local user directory

I am not sure if this SE is the correct place for this question. If not, please let me know. OS: Ubuntu 20.04 (clean install) Python `--version`: 3.8.2 pip `--version`: `pip 20.0.2 from /usr/lib/...
0
votes
0answers
13 views

Tkinter doesn't popup a window on Ubuntu server 18.04

I am new to here, I installed tkinter by running "sudo apt-get install python3-tk" on both Ubuntu desktop and server 18.04, and ran below code, desktop version works but server version doesn't popup a ...
0
votes
0answers
24 views

Sorry, Ubuntu 18.04 has experienced an internal error (l4t_payload_updater)

For several times when I start my Jetson Nano, I will have this error popping up on the screen (refer to screenshots below). I have been installing a number of packages as well as editing the .bashrc ...
2
votes
1answer
66 views

In ubuntu 20.04, how to fix pip path?

I am using Ubuntu 20.04. Every time I try to install a package using pip I get a weird error. pip3 install virtualenv Collecting virtualenv Using cached virtualenv-20.0.21-py2.py3-none-any.whl (4.7 ...
0
votes
1answer
33 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-...
0
votes
1answer
148 views

Why I cannot create pipenv shell in ubuntu 20.04 LTS with python3.8?

I am getting following error while creating executing pipenv shell command: ⠋/usr/bin/python3: No module named pipenv.pew Virtualenv location: Creating a Pipfile for this project… Traceback (most ...
0
votes
0answers
17 views

How to get a list of currently opened websites on a browser

I have Firefox and brave as my web browser on PC. I would like to know how to get a list of currently opened webpages either on normal or private windows on either Firefox or brave. Ultimately I would ...
0
votes
0answers
18 views

ALSA library pops error when trying to record audio through python 3.6.5

I started using Ubuntu two days ago in order to dockerize my application. The application works without any issues on Windows 10. My ubuntu version is 20.04. On running my application when the record ...
-3
votes
1answer
71 views

how can I create a program with python 3.5 [closed]

I wanted to create a program with python3.5. I didn't see how to find the keywords that could help programming.
0
votes
0answers
28 views

Unable to schedule job in cloud vm

I have been trying to run a python script in Ubuntu 20.04 LTS vm every 15 minutes. my cron job notation: */15 * * * * /home/userbulb1/projectfile/main.py First line of my python file: #!/usr/bin/...
1
vote
1answer
25 views

I can't import numpy in Visual studo code

I've installed Numpy for python3, but when i import the package in Visual Studio Code i got this message error : Import Error: No module named numpy. I used pip3 install numpy to install it, the ...
2
votes
1answer
39 views

/usr/lib and Conda Environments

I am trying to understand the proper way to go about solving an issue. Background: I have Anaconda installed with the default python 3.7.7 Ubuntu 20.04 LTS I am trying to run a program with python ...
1
vote
1answer
18 views

Pin Python minor version in Ubuntu 18.04.4 LTS

I am running software which depends on the installed minor Python version. I was surprised to see that something changed my Python3 version from Python3.6.8 to Python3.6.9, which has caused some ...
0
votes
1answer
31 views

Why does pip give an error while installing a tool?

Traceback (most recent call last): File "/tmp/pip-install-kbqd70bu/pycurl/setup.py", line 234, in configure_unix stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.7/...
0
votes
0answers
13 views

Can't use the camera via wsl for opencv [duplicate]

I have been using wsl -Ubuntu for all my python dev. Recently I have started learning OpenCV but I found out that I can't access the webcam via the wsl. Is there any way to access the webcam for ...
0
votes
2answers
377 views

ModuleNotFoundError: No module named 'distutils.util'

after updating to ubuntu 20.04 whenever i type "pip install (some package)" or "pip --version" it says adam@daryy:~$ pip3 Traceback (most recent call last): File "/usr/local/bin/pip3", line 5, ...
0
votes
0answers
16 views

unable to execute VBoxManage command in python executable (created with pyinstaller)

OS: Ubuntu 16.04 LTS make an install.py file executable: pyinstaller -w install.py --onefile install.py script: import os VM = os.system('VBoxManage startvm win10 --type headless') if VM == 0: ...
0
votes
1answer
44 views

Cannot start venv with python3

When trying to start a virtual environment I get: ~$ python3 -m venv homeassistant The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, ...
1
vote
1answer
355 views

Unable to locate package python3-distutils in Ubuntu 16.04

I am an Ubuntu noob and would like to ask you guys to help. Currently I'm faced with 2 issues. 1st issue is when I'm trying mkvirtualenv --python=/usr/bin/python3.8 ENV, it threw me this error. ...
1
vote
1answer
83 views

python3.7: (Pyttsx3) No module named 'pyttsx3'

I had a program (using module pyttsx3) written in Windows which I used to run on python3.7, and it used to run well. But,when I try to run it on Ubuntu 20.04, it doesn't run. I have both python3.8.2 ...
0
votes
1answer
41 views

Xubuntu 20:04 (focal): IPKernelApp|Error|No such comm target registered|jupyter.widget.version

I am running Xubuntu 20.04 (after upgrading from 19.04) as a guest on a VirtualBox VM in a Windows 10 host. After an apt install of the jupyter metapackage, I keep getting two errors. To reproduce ...
0
votes
2answers
100 views

How to keep python virtualenvs while updating ubuntu?

A friend of mine told me that every python virtualenv he had in its ubuntu 18 OS become useless when he upgraded to ubuntu 20, and I think it's because of the new python version (3.8). If anyone could ...
2
votes
1answer
49 views

When installing python 3.8, haskell was installed

When I run sudo apt install python 3.8 on my Ubuntu 18.04.4 LTS, it has installed haskell packages (libghs) together with python and libghs eats more 2 GB disk space. It's seems that module regex '3.8'...
0
votes
1answer
27 views

Python command target changed

Older versions of Ubuntu shipped with python 2.7 and python 3.6. But in Ubuntu 20.04 LTS, only python 3.8 is installed. So when python was typed in terminal, python3.8 opened. python, python3 and ...
0
votes
1answer
75 views

How to remove Python3.8 and Install Python3.6 as default Python in Ubuntu 20.04

completely new here, I was working around from last 2 days to remove the python3.8 from ubuntu 20.04 and install python3.6 as default python. But the issue is when I tried to uninstall or purge ...
0
votes
1answer
36 views

Python3 vs Python 3.8

Ubuntu (older than 20.04 LTS) ships with Python 3 and python 2 both. When python was typed in terminal, python2.7 opens and to open python 3.6, python3 command is needed. However python3.6 also works. ...
0
votes
0answers
39 views

I broke python! can't install any package with apt because “Package python3 is not configured yet.”

I tried to change my default python3 from 3.6 to 3.7 and I realized it's a bad decision since everything was messed up. I then tried to bring it back to 3.6.9. I also removed python3 and reinstalled ...
0
votes
1answer
53 views

How to remove Python 3.8.2 from Ubuntu 18.04 LTS, without damaging preinstalled versions of Python 2.7 and Python 3.6?

I have Ubuntu 18.04 LST with Python 2.7.17 and Python 3.6.9 preinstalled. I have installed Python 3.8.2 via: sudo apt update sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev ...
0
votes
1answer
39 views

Python3.8 venv without activate script

When I try to create a virtual environment, the created folder does not have the venv/bin/activate script. I tried to install and reinstall venv using sudo apt install python3-venv, but it always ...
0
votes
1answer
40 views

How to schedule a cronjob for python script to be executed on weekdays?

I need to set up cron job for python script scheduled at 08:00 15:00 and 18:00 IST My python location is /usr/bin/python3 and script location is ~/Documents/Python/script.py I have tried the ...
1
vote
0answers
16 views

Terminal does not start Ubuntu 18.04

I tried to install Django Framework in Ubuntu. and i am using python 3.8. but in normal instalation, Django 1.1 had been installed. and i changed the python3 alternative to python3.8 . and usuing ...

1
2 3 4 5
21