![]() ![]() Version=$(pyenv versions -bare | grep -E '^3. \. # Use latest installed python version if not specified This is the script if anyone else finds it useful (or I lose it!): If the virtualenv already exists, it deletes it. ![]() Depending on if you are using linux/windows, factors in too. It will then switch this directory to use the new virtualenv using pyenv local. Depending on how you have your environment variables setup (mainly PATH) using just 'python' might default to a python 2 version on your system unless you specifically alias it to run python 3. Python’s venv module provides a means of creating virtual environments that are completely isolated and have their own Python binary. ![]() Since Python 3.3, a subset of it has been integrated into the standard library under the venv module. This creates a new virtualenv called rst2pdf-dev-p圓.9 from Python version 3.9.5, upgrade pip and install pytest, pytest-xdist
0 Comments
Leave a Reply. |