In Python, you can't install multiple versions of the same library in one environment, so you're drinking one version. For example, suppose you have program A that uses library 1 and program B that uses library 2. At this time, program A or B will not work.
You can use a standard module called venc to create a virtual environment.
For macOS
$ python3 -m venv environment name
Will create a directory with the environment name in the current directory. The name of the directory can be set freely
Run the activate script
$.Environment name/bin/activate
(Environment name)$ deactivate
Delete the entire directory when the virtual environment itself is no longer needed
Recommended Posts