1. conda 创建虚拟环境,此时,conda list为空, pip list 为本机pip list
2.
conda install python=3.9
之后 ,pip list 与conda list相同,均为python与相关依赖包
3.
conda install fake-useragent==0.1.11
conda 可以安装anaconda上拥有的包(大约有一千多个) ,但是有些包anaconda不存在,以fake-useragent(0.1.11)为例
若安装会出现:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- fake-useragent==0.1.11
Current channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
- https://mirrors.tuna.tsinghua.edu.cn/anaco