Get the latest tech news

PEP 486 – Make the Python Launcher aware of virtual environments (2015)


The Windows installers for Python include a launcher that locates the correct Python interpreter to run (see PEP 397). However, the launcher is not aware of virtual environments (virtualenv 1 or PEP 405 based), and so cannot be used to run commands fro...

When using virtual environments, the py launcher is unaware that a virtualenv is active, and will continue to use the system Python. This documentation is not expected to change, and users who choose to manage their PATH environment variable can continue to use this form. The focus of this PEP is purely on allowing users who prefer to use the launcher when dealing with their system Python installations, to be able to continue to do so when using virtual environments.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of virtual environments

virtual environments

Photo of Python Launcher

Python Launcher

Photo of PEP 486

PEP 486

Related news:

News photo

Miniature VR headset to immerse mice in virtual environments to reveal neural activity | The researchers are looking to further develop the goggles, with a lightweight, mobile version for larger rodents.