No module named ‘psycopg2’

There is a possibility that you have two versions of python installed and python2-pip is aliased as pip while python3-pip is aliased as pip3. Make sure you are using right version with python and pip. So the command would be:

Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”

I also came across this problem (while creating a simple installer for pyenv). Here’s how I solved it for Mac and Linux: Ubuntu 20.04, 18.04 You need the zlib development files, and probably zlib itself too: If you’re missing zlib, it’s likely that the next problem you’ll run into is with openssl, so it’s probably best to get … Read more

Conda version pip install -r requirements.txt –target ./lib

To create an environment named py37 with python 3.7, using the channel conda-forge and a list of packages: Flags explained: -y: Yes, do not ask for confirmation. –force-reinstall: Install the package even if it already exists. -q: Quiet, do not display progress bar. -c: Channels, additional channels to search for packages. These are URLs searched in the … Read more

“ssl module in Python is not available” when installing package with pip3

Step by step guide to install Python 3.6 and pip3 in Ubuntu Install the necessary packages for Python and ssl: $ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev Download and unzip “Python-3.6.8.tar.xz” from https://www.python.org/ftp/python/ into your home directory. Open terminal in that directory and run: $ ./configure Build and install: $ make && sudo make install … Read more

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