Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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

Repair Ubuntu 22.04 desktop-environment after apt purge python3

After installing a new Ubuntu 22.04 on my computer, I wanted to get a new "clean" installation of python3. So, I had the "not-very-smart" idea to run: sudo apt purge python3 (...
user avatar
  • 1
0 votes
0 answers
12 views

Can't launch the terminal, update or do anything that depends on Python

So I have problems with my 22.04 where I can't launch the Terminal from the keyboard nor the desktop icon. I am using my IDE's bash terminal to really do anything. This is the output when I run sudo ...
user avatar
  • 208
0 votes
0 answers
26 views

Upgrade and use latest Python on Ubuntu 20.04

I'm trying to install, and use, Python3.10 as default on my Ubuntu 20.04 machine. So I followed this guide on the matter. The guide worked, almost, as intended until I ran a sudo apt update && ...
user avatar
  • 119
0 votes
0 answers
23 views

Problem with Python version and Update Manager

I am sort of new with Linux, so forgive me if I mixed up or misuse concepts here. I have Ubuntu 20.04.4 LTS and recently I created a new user in Linux for a project I am doing. From my main user (...
user avatar
-1 votes
1 answer
14 views

Installing libraries for python

Guy's a have a little problem here because I can't figure out how to install my python libraries like media pipe and open-cv. Is it possible to run my codes from windows to ubuntu?
user avatar
0 votes
0 answers
28 views

Uninstalling package python3.10 nuked half of my system

I upgraded to the latest Ubuntu 22.04 LTS. Before I had python 3.9 but I needed 3.10 so I installed, sudo apt install python3.10 After the update, the standard python was bumped to 3.10 so I no ...
user avatar
  • 310
-3 votes
0 answers
26 views

How to install numpy 1.16.1 for python2 on Ubuntu 20.04?

Few lines with description what I already installed: Python3 was already present: python3 --version Python 3.8.10 I wanted to install numpy for python3. Followed directions from sites, first step ...
user avatar
  • 125
0 votes
0 answers
17 views

__pycache__ is not creating

I am working on Ubuntu 20.04 LTS where I am building exe file from python files. Below mentioned commands are I am using for building exe file. $ pip3 install --upgrade pip $ pip3 install --upgrade ...
user avatar
0 votes
0 answers
107 views

cannot build install opencv4.5.5 for ubuntu 22.04

I am trying to build install opencv4.5.5 with cuda10.6 on ubuntu 22.04. Followed every step in this tutorial https://www.sproutworkshop.com/2022/02/how-to-compile-opencv-4-5-5-with-cuda-11-6-and-cudnn-...
user avatar
3 votes
1 answer
451 views

What is the meaning of this PkgResourcesDeprecationWarning warning from pipenv --version?

I get this warning when I run pipenv --version and related commands. /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version ...
user avatar
1 vote
1 answer
126 views

Virtualenv installs envs into local/bin instead of bin

Problem: The bin directory of my virtual environment produced with virtualenvwrapper (which uses virtualenv under the hood) is located in the subfolderlocal instead which leads to breakage across the ...
user avatar
  • 156
1 vote
1 answer
135 views

lsb_release error: bash: /usr/bin/lsb_release: /usr/bin/python3: bad interpreter: No such file or directory

After upgrading to Ubuntu MATE 22.04 Jammy from Ubuntu MATE 21.10 Impish, when I run lsb_release I'm getting this error: $ lsb_release bash: /usr/bin/lsb_release: /usr/bin/python3: bad interpreter: ...
user avatar
  • 1,831
0 votes
0 answers
80 views

Pyenv is not switching to system wide pip when going back to system python

I have the following problem...sort to speak.. I've installed pyenv in a fresh Ubuntu 22.04 couple days back and only installed one python 3.9 using it. pyenv versions * system (set by /home/...
user avatar
0 votes
1 answer
60 views

Python binary path in pip

When I run python it runs version 3.10.4: $ python Python 3.10.4 (main, Apr 8 2022, 17:35:13) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license&...
user avatar
  • 1
0 votes
0 answers
35 views

error while doing dpkg --configure -a

error while doing dpkg --configure -a Setting up python3-speechd (0.11.1-1) ... /var/lib/dpkg/info/python3-speechd.postinst: 6: /var/lib/dpkg/info/python3-speechd.postinst: py3compile: not found dpkg: ...
user avatar
2 votes
2 answers
1k views

Problem updating 20.04 - python3.7 errors

I am just trying to run my normal update/upgrade and have been getting this error: dpkg: warning: files list file for package 'libpython3.7-minimal:amd64' missing; assuming package has no files ...
user avatar
0 votes
1 answer
78 views

Cannot create python virtual environments or use pip in Ubuntu 20.04 LTS

I'm using Ubuntu 20.04.4 LTS. When I try python3 -m venv env, I get: The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to ...
user avatar
  • 101
0 votes
0 answers
23 views

How do I enable CORS for a local python3 http.server?

I have a local server running on my Ubuntu using python3 -m http.server 8080 --bind 127.0.0.1. Is there a flag I can pass to enable CORS? Many thanks...
user avatar
1 vote
3 answers
747 views

Ubuntu 22.04 is having issues with python virtualenvironments like pipenv and virtualenv

It could not find the path of the python interpretor after typing pipenv shell After activating the environment manually pip freeze grabing all the dependencies from main python environment.
user avatar
  • 11
0 votes
1 answer
128 views

cool python cairo screen widget needs to be ported from PyGTK to PyGI

I am running Ubuntu 20.04 Mate Desktop. I found a cool old screen widget which shows clock, cpu, memory, Wi-Fi strength. It doesn't have any dependency to screenlet package. Though it's very old I ...
user avatar
  • 4,729
2 votes
0 answers
326 views

how to install libpython3.6m.so.1.0 on ubuntu 20.04?

I tried updating my cross tools for arm64 on my x86-64 ubuntu 20.04 machine. The installed cross tools gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf from arm. When I run the aarch64-none-elf-gdb, it ...
user avatar
  • 1,257
2 votes
2 answers
84 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-...
user avatar
0 votes
0 answers
662 views

Upgrading to Ubuntu 22.04 from 20.04 getting error unmet dependencies [duplicate]

$ sudo apt-get update -y && sudo apt-get full-upgrade && sudo apt autoremove -y Get:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease [270 kB] Hit:2 https://brave-browser-apt-...
user avatar
0 votes
0 answers
46 views

Cannot install onboard [duplicate]

I want to install onboard on my Ubuntu 20.04. It is giving me this error: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. ...
user avatar
  • 11
4 votes
2 answers
2k 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 ...
user avatar
0 votes
1 answer
43 views

Giving error python3-pip

I am using Ubuntu 21.10. When I write this in command line: sudo apt-get install python3-pip It gives this: Reading package lists... Done Building dependency tree... Done Reading state information... ...
user avatar
0 votes
0 answers
61 views

Error building wheel for manimpango

I use ubuntu and when I am getting error in installing manim, pip3 install manimpango and pip install manimpango and have tried sudo apt install libpango1.0-dev pkg-config python3-dev but getting same ...
user avatar
0 votes
0 answers
65 views

mucking around with python and gnome-terminal will not launch

I am running 20.04.3 and tried to upgrade my python environment and horked something. The terminal will not launch. Thankfully, I kept my Mac Book after I switched my main dev work to this new Ubuntu ...
user avatar
  • 101
0 votes
2 answers
54 views

How can I 'align' python, pip and environments? I'm trying to install certbot on ubuntu VPS

Ubuntu 20.04 VPS on hostinger $ whereis python python: /usr/bin/python2.7 /usr/bin/python /usr/bin/python3.8 /usr/bin/python3.9 /usr/bin/python3.8-config /usr/lib/python2.7 /usr/lib/python3.8 /usr/...
user avatar
0 votes
0 answers
133 views

gunicorn active: failed, why don`t active gunicorn?

i hav ubuntu server 20.04 and a django project i set /etc/systemd/system/gunicorn.socket Description=gunicorn socket [Socket] ListenStream=/run/gunicorn.sock [Install] WantedBy=sockets.target and /...
user avatar
  • 9
0 votes
0 answers
36 views

python version (conda -forge)

I am using 18.04 Ubuntu with Anaconda.Recently i have trying to install OpenCV through conda-forge channel in the base environment. I did not install purposely any Python version and did not use any ...
user avatar
0 votes
1 answer
183 views

Conda hangs when installing new Python version

Some of the output of conda search python is: # Name Version Build Channel python 3.9.0 h2a148a8_4_cpython conda-forge ...
user avatar
0 votes
1 answer
161 views

Matplotlib plt.show(block=False) opens black window

Matplotlib plt.show(block=False) gives me a black window when plotting something that normally would work with plt.show(block=True). With my previous Ubuntu install I could always run plt.show(block=...
user avatar
1 vote
1 answer
318 views

Why is pip not upgrading cleanly on ubuntu 20.04 lts?

pip upgrade is not working, shows it upgraded by version is still showing old version root@ubuntu:~# pip install --upgrade pip Collecting pip Downloading pip-22.0.3-py3-none-any.whl (2.1 MB) |██...
user avatar
  • 201
0 votes
0 answers
215 views

How to update python in the correct way?

I have ever updated my python version without problem but I did note that for an unknown reason my OS is not working well when I do change my python version using `sudo update-alternatives --config ...
user avatar
0 votes
1 answer
67 views

Software & Updates and Software Updater doesn't open in Ubuntu 20.04

I don't know exactly what did happen to parts of my system that broke; I suspect that it's related to my python upgrade but I'm not sure. Some parts I have already fixed, but it still not opening the ...
user avatar
1 vote
0 answers
451 views

Segmentation fault (core dumped) error when installing pachages with pip3 on virtualenv

I am working with Ubuntu 21.10 and I just installed python3.6 using this tutorial: https://stackoverflow.com/questions/70395169/how-to-install-python-3-6-on-ubuntu-21-10 After that I created a virtual ...
user avatar
5 votes
1 answer
446 views

How can I check which python script is being run given its PID?

top is showing that some python script is using all computer resources Sadly, I have more that one python scrip being running. How can I identify which file it is being run from? I obtained PID using ...
user avatar
0 votes
1 answer
147 views

Python package works on the command line but cannot be found in a script

Basically from the title and the image below, I have installed pyserial and it works in the Python terminal but not in a script. I have done pip3 install pyserial, and have also tried pip install ...
user avatar
1 vote
0 answers
566 views

AVX support problem

When I import tensorflow in python shell it gives error: The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine. Aborted Whereas i have intel® Core™ ...
user avatar
-4 votes
1 answer
182 views

Ubuntu default python3.8.10

When I install python3.9 or 3.10, there is no change in python3 command. It is still python3.8.10 and all packages will be installed for 3.8.10 unless I run a python3.9 -m pip. What is the reason that ...
user avatar
0 votes
0 answers
22 views

how to create multiple subfolders in pyhton using subprocess?

On my ubuntu 20.04 when I use mkdir -p /home/parent/{child1,child2} in my terminal I get a folder parent with 2 subfolders child1 and child2. parent parent/child1 parent/child2 However, when I try ...
user avatar
  • 33
1 vote
1 answer
261 views

Install python-mysqldb for Python 2.7 in Ubuntu 20.04 - unmet dependencies

I am trying to install python-mysqldb for Python 2.7 in Ubuntu 20.04: $ sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu bionic main' $ sudo apt update $ sudo apt install -y python-...
user avatar
  • 2,333
0 votes
0 answers
95 views

How to run a Python script on Ubuntu Core 20

I would like to run a Python script on Ubuntu Core 20 without making a snap. How can I do it - is it possible?
user avatar
  • 1
0 votes
1 answer
180 views

Change python version only in a single virtual environment

Gnome terminal will only run when python3.6 is used. So I created an environment and installed python3.9 like so: #!/usr/bin/env bash sudo apt install python3-venv python3 -m venv test_env source ...
user avatar
1 vote
1 answer
749 views

/usr/bin/python: No module named pip

I am following this tutorial: https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html#tf-models-install and more specifically: Install the Object Detection API When I ...
user avatar
0 votes
0 answers
26 views

How do I fix pycharm?

I reinstalled Ubuntu recently, and everything went fine until I tried to install PyCharm. It worked properly on my past install, and I tried installing it with the Ubuntu Store and the tarball file ...
user avatar
0 votes
0 answers
50 views

Parallel Running Problem for PETSc

I have Ubuntu 20.04.3 LTS as a guest machine. I installed SU2 v7.2.1. I have no problem at serial running. I can parallel run some tutorials (for example with: mpirun -np 6 SU2_CFD example.cfg). ...
user avatar
0 votes
0 answers
22 views

Disable .pythonrc only in Python 2

Thanks to this assignment: export PYTHONSTARTUP=~/.pythonrc I can start an initialization script as soon as I run Python, a bit like the .bashrc file. The problem is that this works on both Python2 ...
user avatar
0 votes
0 answers
244 views

can't find libpython3.8.a while install uwsgi

when I run the command to install uwsgi, pip install uwsgi I got such error: gcc: error: /home/shawn/anaconda3/envs/i2dl/lib/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.a: No such file or ...
user avatar

1
2 3 4 5
26