Changes

Jump to navigation Jump to search
== Basic PIP and Virtual Environments ==
Do NOT (normally) use sudo with pip. Use a virtual environment. As of Python 3.4, the command is now called <code>pyvenv</code> or simply <code>venv</code>. As of Python 3.6 <code>pyvenv</code> is '''deprecated''' in favor of using <code>python3 -m venv</code> to help prevent any potential confusion as to which Python interpreter a virtual environment will be based on. '''python3''' is not generic. It represents the '''exact''' version you wish to use in your virtual environment.
 
As an example, I needed to create a Python Virtual Environment to use the [https://github.com/freephile/meza/issues/63#issuecomment-2020431602 Ansible Playbook Grapher]
<source lang="bash">
python3.11 -m venv myenv

Navigation menu