If you happen to be using the venv module that comes with Python 3.3+, it supports an --upgrade
option.
Per the docs:
Upgrade the environment directory to use this version of Python, assuming Python has been upgraded in-place
python3 -m venv --upgrade ENV_DIR
More Related Contents:
- Upgrade Python in a virtual environment
- What is a virtualenv, and why should I use one?
- How can I install packages using pip according to the requirements.txt file from a local directory?
- What is the purpose of “pip install –user …”?
- What is the easiest way to remove all packages installed by pip?
- “Cannot open include file: ‘config-win.h’: No such file or directory” while installing mysql-python
- Renaming a virtualenv folder without breaking it
- pip installing in global site-packages instead of virtualenv
- How to install psycopg2 with “pip” on Python?
- Problems with pip install numpy – RuntimeError: Broken toolchain: cannot link a simple C program
- ImportError: No module named Crypto.Cipher
- virtualenv –no-site-packages and pip still finding global packages?
- How to uninstall a package installed with pip install –user
- How to install a package inside virtualenv?
- How do I tell a Python script to use a particular version
- What is the official “preferred” way to install pip and virtualenv systemwide?
- How to specify install order for python pip?
- Illegal instruction (core dumped) after running import tensorflow
- How to install virtualenv without using sudo?
- PyCharm doesn’t recognize installed module
- How do I remove all packages installed by pip?
- SSL backend error when using OpenSSL
- virtualenv: Specifing which packages to use system-wide vs local [duplicate]
- Could not find a version that satisfies the requirement pytz
- Could not build wheels for _ which use PEP 517 and cannot be installed directly – Easy Solution
- Python packages not installing in virtualenv using pip
- Could not find a version that satisfies the requirement for select requirements
- how to pip uninstall with virtualenv on heroku cedar stack?
- pip: Could not find an activated virtualenv (required)
- Copy complete virtualenv to another pc