Use conda commands to create and manage a virtual environment and the Python packages inside it.
Download the Anaconda or Miniconda. Anaconda and miniconda come with Python and pip installed. Anaconda installs many packages and tools that are common for data science. Miniconda is far smaller.
conda create -n myenv pandas jupyterlab
Create a new conda environment named myenv
with the latest version of Python on the main conda channel and have pandas and jupyterlab installed into it.
conda create -n myenv python=3.9
Create a new conda environment named myenv
with the Python version specified.