Python steps to create a virtual environment

Make sure cmd to run it as an administrator

  1. select a folder

  2. input the command

    python -m venv 环境名
    
  3. Enter the Scripts folder in it [installed packages are here]

  4. execute activate.batfile

  5. install librarypip install -r 文件名.txt

Guess you like

Origin blog.csdn.net/qq_56402474/article/details/131182718