随笔分类 -  Conda/Pip

python的包管理工具conda和pip
摘要:打开路径中的history.py文件,在它的的82行中添加:encoding='utf-8',然后保存history.py文件。最后重启anaconda 命题提示符之后输入python即可正常运行 阅读全文
posted @ 2023-03-12 23:32 Guanjie255 阅读(110) 评论(0) 推荐(0)
摘要:1.克隆旧的环境old_name并且将新环境命名为new_name:conda create --name new_name --clone old_name 2.删除旧的环境:conda remove --name old_name --all 阅读全文
posted @ 2022-12-03 23:13 Guanjie255 阅读(868) 评论(0) 推荐(0)
摘要:一.使用conda命令实现虚拟环境的导入导出 1.从计算机a中导出虚拟环境test的相关信息 conda activate test # 先切换到test虚拟环境 conda env export > C:\users\sgj\desktop\test_r.yaml # 将test虚拟环境的相关信息 阅读全文
posted @ 2022-10-16 18:53 Guanjie255 阅读(3185) 评论(0) 推荐(0)
摘要:1.PyPI : Python Package Index,the default repository(仓库) of Python packages for Python community that includes frameworks, tools and, libraries. Pytho 阅读全文
posted @ 2022-10-16 16:27 Guanjie255 阅读(1729) 评论(0) 推荐(0)
摘要:conda command 官方网站Command reference — conda 22.9.0.post42+24f062e25 documentation 创建一个虚拟环境:conda create --name 环境名 [包名和指定的版本] #[包名和指定的版本]可以省略,新建的环境默认安 阅读全文
posted @ 2022-09-30 22:11 Guanjie255 阅读(219) 评论(0) 推荐(0)
摘要:1.解决方案:想用哪个虚拟环境就必须将包nb_conda安装在哪个虚拟环境中 # 安装成功之后,回到jupyter notebook 新建notebook的时候就会出现你想要的虚拟环境了 $ conda install nb_conda 2.在虚拟环境中使用代码自动补全功能,需要安装pyreadli 阅读全文
posted @ 2022-09-25 20:48 Guanjie255 阅读(160) 评论(0) 推荐(0)