Unable to locate package python-pip Ubuntu 20.04

Pip for Python 2 is not included in the Ubuntu 20.04 repositories. You need to install pip for Python 2 using the get-pip.py script. 1. Start by enabling the universe repository: sudo add-apt-repository universe 2. Update the packages index and install Python 2: sudo apt update sudo apt install python2 3. Use curl to download … Read more

Why does pip3 want to create a kdewallet after installing/updating packages on Ubuntu 20.04?

This solved it for me: python3 -m keyring –disable Running it adds: [backend] default-keyring=keyring.backends.null.Keyring to the file ~/.config/python_keyring/keyringrc.cfg. Presumably PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring mentioned at https://stackoverflow.com/a/68504137/895245 offers an environment variable way to achieve the same result. Without this, it would show the annoying KDE keyring popup every time I try to install a package: Google, index this: The … Read more

ImportError: cannot import name ‘html5lib’ from ‘pip._vendor’ (/usr/lib/python3/dist-packages/pip/_vendor/__init__.py) [duplicate]

If you have faced this error please refer to this answer. In order to save your time, I will post what I have done to solve the issue. Install the latest pip with the following command: curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10

Memory allocation to docker containers after moving to WSL 2 in Windows

The Memory and CPU settings were removed for WSL2 integration. However, starting in Windows Build 18945, there is a workaround to limit WSL2 memory usage. Create a %UserProfile%\.wslconfig file for configuring WSL2 settings: [wsl2] memory=6GB # Any size you feel like (must be an integer!) swap=0 localhostForwarding=true Run Get-Service LxssManager | Restart-Service in an admin … Read more

MySQL ERROR 2026 – SSL connection error – Ubuntu 20.04

Ubuntu 20 has improved the security level. The only way i could connect was allowing the tls 1 . Edit this file: /usr/lib/ssl/openssl.cnf And put at the beginning of file: openssl_conf = default_conf And in the end of that file too: [ default_conf ] ssl_conf = ssl_sect [ssl_sect] system_default = ssl_default_sect [ssl_default_sect] MinProtocol = TLSv1 … Read more

Python 3.7 on Ubuntu 20.04

Do you need Ubuntu 20.04? Ubuntu 18.04 comes with Python 3.6, and 3.7 available. If you do, the deadsnakes PPA has Python 3.5-3.7 for Ubuntu 20.04 (Focal). To add it and install: sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get install python3.7 P.s. I’m not a dev and have no experience with Tensorflow so take this with a … Read more

How to install pip for Python 3.9 on Ubuntu 20.04 [duplicate]

You can install pip for python 3.9 the following way: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3.9 get-pip.py It is important you use python3.9 instead of just python3, to ensure pip is installed for python 3.9. If you see any permissions errors, you may need to use python3.9 get-pip.py –user If you get an error like No … Read more

MySQL installation on Ubuntu 20.04 error when using mysql_secure_installation [closed]

Had the same error, solved it by running sudo mysql which logged me in as root without a password, then I ran ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password by ‘mynewpassword’; Following this I was able to run mysql_secure_installation again and this time I got to choose to use existing password (the one I set with … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)