Python Index Page 7

SOLVED: OSX or macOS Sierra, error while installing python with python: zipimport.ZipImportError: can't decompress data; zlib not available

Read how to solve the zipimport.ZipImportError: can't decompress data; zlib not available error while using pyenv to install a new python version. For OSX our solution was to use export CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" and export LDFLAGS="-L$(brew --prefix openssl)/lib" environment variables while installing python with pyenv.

Python Index Page 7

SOLVED: fixing macOS Sierra fatal error: 'openssl/opensslv.h' or 'openssl/aes.h' file not found

Steps to fix 'openssl/opensslv.h' or 'openssl/aes.h' file not found error on macOS or OSX.

Python Index Page 7

SOLVED: ImportError: bad magic number in : b'\x03\xf3\r\n'

Learn how to solve the above error when importing python modules. But the solution usually is cleaning pyc files.

Python Index Page 7

SOLVED: Brew+ python3+ pyqt5: ModuleNotFoundError: No module named 'sip'

Using brew PyQt5 and python3 the error: ModuleNotFoundError: No module named 'sip' is raised. We explain hot to solve this issue.