PIP

Some PIP Settings

  • pip config list

  • pip config set global.index-url https://pypi.org/simple

  • pip config unset global.index-url

Run Virtual Environment in Secure environment

  • python -m venv --without-pip venv

  • When running python, below error is shown: This program is blocked by group policy. For more information, contact your system administrator

    • Solution: set PYVENV_LAUNCHER==venv\Scripts: this infact doens't work

Reference

  • https://docs.python.org/3/library/venv.html

Last updated