简体   繁体   English

如果我开始使用conda作为python软件包管理器,是否应该从pip卸载以前安装的软件包?

[英]If I start using conda as my python package manager, should I uninstall previously installed packages from pip?

I've been using pip to install packages directly to my root directory, but I read recently that using a virtual environment like conda or virtualenv is better practice. 我一直在使用pip将软件包直接安装到我的根目录,但是最近我读到,使用像conda或virtualenv这样的虚拟环境是更好的做法。 If I start using conda now, should I uninstall my pip-installed packages? 如果我现在开始使用conda,是否应该卸载点安装的软件包? I use python for a variety of applications, including machine learning with both Keras and Pytorch. 我将python用于各种应用程序,包括使用Keras和Pytorch进行机器学习。

Generally the version that is installed using the conda environment is used by your code. 通常,您的代码使用使用conda环境安装的版本。 However, in certain situations different version of the package installed using pip and conda can lead to conflicts. 但是,在某些情况下,使用pip和conda安装的软件包的不同版本可能会导致冲突。

A recommended way is to have a fresh install of the package using conda. 建议的方法是使用conda重新安装软件包。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我应该如何卸载我通过 pip 安装的所有软件包? 在我开始安装 API 软件包之前,我的虚拟环境运行良好 - How should I uninstall all packages I've installed via pip? My virtual environments were working fine until I started installing API packages 如何检查我是否安装了 Python、pandas 和带有 conda 或 pip 的 Jupyter? 我应该用 conda 重新安装它吗? - How can I check if I installed Python, pandas, and Jupyter with conda or pip? Should I reinstall it with conda? 如果从源代码安装,如何卸载包管理器“pip”? - How do you uninstall the package manager “pip”, if installed from source? 如果我使用 pip 安装 Anaconda 中未包含的软件包,package 是否也会安装在 conda 环境中? - Does a package also gets installed in conda environment if I use pip to install packages not included in Anaconda? 如何获取 pip/conda 安装的最新软件包? - How do I get the latest packages installed by pip/conda? conda 是否从使用 pip install 安装的 pypi 更新包? - Does conda update packages from pypi installed using pip install? 我无法通过pip卸载软件包(Python) - I cannot uninstall a package by pip (Python) conda 认为 package 已安装,但无法正常工作。 当我尝试卸载时,它想删除 120 多个其他包 - conda thinks a package is installed, but it's not working. when I try to uninstall, it wants to remove 120+ other packages Python包用与pip和conda一起安装的重复项 - Python packages duplicates installed with pip and conda 如何卸载在anaconda中使用pip安装的opencv-python包? - how to uninstall opencv-python package installed by using pip in anaconda?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM