Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on PyPy

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation

  1. Download PyPy from https://www.pypy.org/download.html.

  2. Unzip it.

  3. Install pip.

    :::bash /path/to/pypy -m ensurepip /path/to/pypy -m pip install ...

Packages Failed to Install

pytype …

The Installation Location of Python Packages Using Pip

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

When installing a Python package using pip without using sudo or the root user, the package is installed into the user's local directory at ~/.local/lib/python3.7/site-packages (using Python …

Issues in pip and Solutions

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The issue is due to to pyopenssl using old dependencies. It can be fixed by removing the Python package cryptography package and then upgrading …

Python Packaging Tools

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Python packaging:

https://python-packaging.readthedocs.io/en/latest/minimal.html

  1. It is recommended to use PyBuilder to manager Python projects.

pyinstaller

setuptools

pip

pip can install a package from a GitHub …