https://www.chiplynch.com/wiki/index.php?title=Python_Tidbits&feed=atom&action=historyPython Tidbits - Revision history2024-03-29T11:54:27ZRevision history for this page on the wikiMediaWiki 1.38.2https://www.chiplynch.com/wiki/index.php?title=Python_Tidbits&diff=2480&oldid=prevChip: ensurepip tidbit2019-10-24T05:37:31Z<p>ensurepip tidbit</p>
<p><b>New page</b></p><div># python ensurepip issues<br />
if you try something like:<br />
<blockquote lang="bash">python3.7 -m venv py3nv</blockquote><br />
and get something like:<br />
<blockquote lang="bash">Error: Command '['/home/chipmonkey/repos/ProcJam/py3nv/bin/python3.7', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.</blockquote><br />
chances are the version of pip and/or venv you have installed via apt do not match the version of python you are using:<br />
<blockquote lang="bash">sudo apt install python3.7-pip python3.7-venv</blockquote></div>Chip