[英]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.