ubuntu-20.04

Upgrade python3.8 to 3.10 in Ubuntu Docker image

Upgrade python3.8 to 3.10 in Ubuntu Docker image Question: I am using playwright base image FROM mcr.microsoft.com/playwright Unfortunately, this comes with python3.8. I could either use python3.10 image and install playright on it, but it came with other complexities, so i chose to upgrade python on playright image to 3.10. So far, my Dockerfile looks …

Total answers: 4

ImportError: /home/me/anaconda3/envs/sniptest/lib/python3.9/site-packages/PyQt5/QtWidgets.abi3.so: undefined symbol: _ZdlPvm, version Qt_5

ImportError: /home/me/anaconda3/envs/sniptest/lib/python3.9/site-packages/PyQt5/QtWidgets.abi3.so: undefined symbol: _ZdlPvm, version Qt_5 Question: When i try to run this code as shown in this link https://github.com/harupy/snipping-tool/blob/master/multi_snipping_tool.py, I got the following error Traceback (most recent call last): File "/home/Projects/sniptest/src/multisnip.py", line 36, in from PyQt5 import QtWidgets, QtCore, QtGui ImportError: /home/me/anaconda3/envs/sniptest/lib/python3.9/site-packages/PyQt5/QtWidgets.abi3.so: undefined symbol: _ZdlPvm, version Qt_5 My ubuntu version is 20.04 and …

Total answers: 1

Cannot connect to MongoDB when tunneling SSH connection

Cannot connect to MongoDB when tunneling SSH connection Question: I am developing a GUI using Flask. I am running Ubuntu 20.04. The data that I need is from MongoDB, which is running on a Docker container on a server. My Mongo URI is "mongodb://<USERNAME>:<PASSWORD>@localhost:9999/<DB>?authSource=<AUTHDB>". First I tunnel the SSH connection to the server: ssh -L …

Total answers: 2

Tkinter is not a module in Ubuntu 20.04

Tkinter is not a module in Ubuntu 20.04 Question: I was on my computer and I was trying to code some tkinter code but when I put the starters in Pycharm, there was an error saying that Tkinter is not a module and then I tested it as tkinter and it was also not found. …

Total answers: 2

How to install pip for Python 3.9 on Ubuntu 20.04

How to install pip for Python 3.9 on Ubuntu 20.04 Question: Ubuntu 20.04 comes with Python 3.8. I cannot uninstall Python 3.8 but I need Python 3.9 I went ahead and installed Python 3.9 from: sudo add-apt-repository ppa:deadsnakes/ppa sudo apt install python3.9 How do I install pip for python 3.9? Installing pip using sudo apt-get …

Total answers: 8

Python 3 is not upgrading pip. Am I linking a wrong directory?

Python 3 is not upgrading pip. Am I linking a wrong directory? Question: I have the following issue every time I try to install a package in Python 3: WARNING: You are using pip version 20.2.4; however, version 20.3.1 is available. You should consider upgrading via the ‘/usr/bin/python3 -m pip install –upgrade pip’ command I …

Total answers: 3

Failed to find TIFF header file (tifflib error on python – Ubuntu 20.04)

Failed to find TIFF header file (tifflib error on python – Ubuntu 20.04) Question: I have the following error ValueError: Failed to find TIFF header file (may be need to run: sudo apt-get install libtiff4-dev) I already ran: sudo apt-get install libtiff-dev:i386 sudo apt-get install libtiff-dev But I still getting the tiff header error. I …

Total answers: 3

How can I install pip for Python2.7 in Ubuntu 20.04

How can I install pip for Python2.7 in Ubuntu 20.04 Question: Is there any way that I can install "pip" for "Python2.7" ? I could install python2.7 by sudo apt install python2-minimal I tried installing pip for this. sudo apt install python-pip / python2-pip / python2.7-pip but none worked. Can anybody have solution for this. …

Total answers: 2

how to install virtualenv on Ubuntu 20.04 GCP instance?

how to install virtualenv on Ubuntu 20.04 GCP instance? Question: I am trying to install python3 virtualenv. I get the following message when I try to run virtualenv. virtualenv Command ‘virtualenv’ not found, but can be installed with: apt install python3-virtualenv but if I run install command, I get the following error. apt install python3-virtualenv …

Total answers: 10

Unable to locate package python-pip Ubuntu 20.04

Unable to locate package python-pip Ubuntu 20.04 Question: I am trying to install mininet-wifi. After downloading it, I have been using the following command to install it: sudo util/install.sh -Wlnfv However, I keep getting the error: E: Unable to locate package python-pip I have tried multiple times to download python-pip. I know mininet-wifi utilizes python …

Total answers: 7