当前位置:网站首页>conda virtual environment | install and list problems
conda virtual environment | install and list problems
2022-07-29 20:55:00 【Navigation】
1. conda creates a virtual environment. At this time, the conda list is empty, and the pip list is the native pip list
2.
conda install python=3.9After that, the pip list is the same as the conda list, both of which are python and related dependencies
3.
conda install fake-useragent==0.1.11Conda can install the packages that anaconda has (about a thousand), but some packages anaconda do not exist, take fake-useragent(0.1.11) as an example
If installed it will appear:
Collecting package metadata (current_repodata.json): doneSolving environment: failed with initial frozen solve. Retrying with flexible solve.Collecting package metadata (repodata.json): doneSolving environment: failed with initial frozen solve. Retrying with flexible solve.PackagesNotFoundError: The following packages are not available from current channels:- fake-useragent==0.1.11Current channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/win-64- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/win-64- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/noarchTo search for alternate channels that may provide the conda package you'relooking for, navigate tohttps://anaconda.organd use the search bar at the top of the page.So at this point we want to use pip install
pip install fake-useragent=0.1.11pip install packages that are not available
After installation, open conda list and pip list
We will find that both lists are related to this package
The screenshot is as follows:


If the package is installed using conda install, it also exists in both lists
4. We import the package with pip install in this virtual environment, which can be successfully imported

Summary:
pip install can install packages that anaconda does not have. The packages appear in both lists and can be imported normally in the virtual environment.
In the conda virtual environment, pip list is indeed a proper subset of conda list.
边栏推荐
- Samba server configuration (when a server is required)
- 通过观测云监控器监控基础资源,自动报警
- ESP8266-Arduino编程实例-LittleFS及数据上传
- 单壁碳纳米管-DNA复合物(SWCNT-DNA)|作用机理
- SAG1-MIC8复合DNA基因疫苗|新型脂质-HAP-DNA复合体|实验要求
- 4D Summary: 38 Knowledge Points of Distributed Systems
- 聚丙烯微孔膜的等离子体改性及DNA|有机自由基改性DNA-阳离子脂质复合体的应用
- 使用MD5加密后的字符串存密码安全吗?你不得不了解的Hash算法
- 藻酸盐/PEI/DNA复合载体|脂质-鱼精蛋白-DNA复合物|合成方法
- ds1302——Bin brother 51
猜你喜欢

Single-core browser and what is the difference between dual-core browser, which to use?

荧光量子点修饰siRNA-QDs|纳米金修饰siRNA-Au(RNA修饰方式方法)

【组成原理 五 系统总线】

conda虚拟环境 | install 与 list 问题

【AutoSAR 六 描述文件】

SAG1-MIC8复合DNA基因疫苗|新型脂质-HAP-DNA复合体|实验要求

使用MD5加密后的字符串存密码安全吗?你不得不了解的Hash算法

LeetCode #88.合并两个有序数组

尿素偶联Urea-siRNA Conjugates|Cyclodextrin-siRNA-β-CD环糊精修饰RNA核酸(解析说明)

【AutoSAR 一 概述】
随机推荐
Chrome - Plugin Recommendations
常用电源符号含义分享
sad rock
安全浏览器将拥有这些隐藏功能,让你玩转浏览器
Briefly talk about K-means clustering
Single-core browser and what is the difference between dual-core browser, which to use?
Is Apifox free?Completely free, unlimited team size, unlimited functions
JUC并发编程基础AQS
EasyExce template filling generation of Excel of actual operation, many processing sheet page
Thesis writing strategy | how to write an academic research paper
About the choice of x86, x64, x86_64, ARM 64, ARM 32 when installing software
【AutoSAR 十二 模式管理】
软件开发模式有哪些(软件工程开发模式)
叶酸&适配体修饰DNA纳米载体|CdS纳米颗粒修饰DNA|科研试剂
Kubernetes: (4) Common commands
找工作那些事-和表弟的一次聊天
虚假新闻检测论文阅读(六):A Deep Learning Model for Early Detection of Fake News on Social Media
解决宝塔mysql 远程root 无法连接问题
LOG4J Learning
etcd implements large-scale service governance application combat