当前位置:网站首页>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.9
After 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.11
Conda 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.11
pip 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.
边栏推荐
- sad rock
- Expert advice | How to formulate a growth strategy for survival in an economic downturn
- ESP8266-Arduino编程实例-LittleFS及数据上传
- JMeter usage tutorial (2)
- 线程的六种状态
- 震荡波病毒原代码(勒索病毒源代码)
- 诺氟沙星-DNA复合物|半乳糖化脂质体-聚阳离子-DNA复合物|注意事项
- 模拟量、数字量与开关量的区别
- Experience Sharing | Tips for Writing Easy-to-Use Online Product Manuals
- EasyExce template filling generation of Excel of actual operation, many processing sheet page
猜你喜欢
虚假新闻检测论文阅读(六):A Deep Learning Model for Early Detection of Fake News on Social Media
In the past six months, I have done those things about the automatic return of the transaction link...
Omni-channel e-commerce | How can well-known domestic cosmeceuticals seize the opportunity to achieve rapid growth?
第二增长曲线 | 企业创新突破停滞困境的驱动指南
SAG1-MIC8复合DNA基因疫苗|新型脂质-HAP-DNA复合体|实验要求
8.2实训任务 Sqoop的安装与配置
图床软件要收费,算了我自己写一个开源免费的。
使用IDEA连接mysql
找工作那些事-和表弟的一次聊天
Hyaluronic acid-siRNA透明质酸修饰核糖核酸|peptide–siRNA 多肽偶连RNA/DNA核酸(齐岳PNA修饰物)
随机推荐
ACM study book introduction
使用MD5加密后的字符串存密码安全吗?你不得不了解的Hash算法
conda虚拟环境 | install 与 list 问题
Samba服务器配置(什么情况下需要服务器)
webUI测试框架设计思路详解
ACM学习书籍简介
LOG4J 学习
ds1302——Bin brother 51
接口测试工具之Postman详解
Unity判断字符串是否可以转为float类型
JUC Concurrent Programming Basics AQS
Internship: use easypoi to import and export excel table data
Permutations of a small feat: cantor
安全浏览器将拥有这些隐藏功能,让你玩转浏览器
无偏估计和最小方差无偏估计简介
【体系结构 一 概述】
Safe Browser will have these hidden features that will let you play around with your browser
【AutoSAR 一 概述】
HMS Core音频编辑服务音源分离与空间音频渲染,助力快速进入3D音频的世界
GNOME将在Secure Boot被禁用时向用户发出警告 并准备提供安全帮助