Python Tidbits

From ChipWiki
Jump to navigation Jump to search
  1. python ensurepip issues

if you try something like:

python3.7 -m venv py3nv

and get something like:

Error: Command '['/home/chipmonkey/repos/ProcJam/py3nv/bin/python3.7', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

chances are the version of pip and/or venv you have installed via apt do not match the version of python you are using:

sudo apt install python3.7-pip python3.7-venv