怎样快速安装pip install 库文件 , anaconda prompt配置环境常用命令


1、查看已安装的包
conda list
2、更新所有包
conda upgrade --all
3、安装包
conda install package_name
4、删除包
conda remove package_name
5、更新包
conda update package_name
6、不知道包名要找包
conda search name
7、用conda建立虚拟环境
conda create -n env_name list_of_packages
其中 -n 代表 name,env_name 是需要创建的环境名称,list of packages 则是列出在新环境中需要安装的工具包。
例如:conda create -n tensor18flow36 python=3.6.2
8、显示所有的环境:
conda env list
9、切换到某环境
conda activate 环境名
10、退出某环境
conda deactivate 环境名
11、查看版本
conda --version
12、列出所有的环境
conda env list

清华镜像

pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu 将其替换就可以了 。

 

豆瓣镜像

pip install PyQt5 -i https://pypi.douban.com/simple

 

 

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM