I am using both "pip freeze" and "conda list" to list the packages installed in my environment, but what are their differences?
相关问题
- How to install local library with pip to a conda e
- How to deploy python flask application in conda ba
- Cant Install Tensorflow 2.2.0rc0 in Ubuntu with Gi
- ssl not available
- installing packages for python 3
相关文章
- 在liunx 安装Levenshtein错误
- Raspberry Pi-Python: Install Pandas on Python 3.5.
- Should I use pip.main() or subprocess.call() to in
- How can I add dependency link to repo subdirectory
- Is there a way for pip to install only new depende
- Best way to execute a python script in a given con
- Can conda install source distributions?
- CondaHTTPError: HTTP 000 CONNECTION FAILED for url
If the goal only is to list all the installed packages,
pip list
orconda list
are the way to go.pip freeze
, likeconda list --export
, is more for generating requirements files for your environment. For example, if you have created a package in your customized environment with certain dependencies, you can doconda list --export > requirements.txt
. When you are ready to distribute your package to other users, they can easily duplicate your environment and the associated dependencies withconda create --name <envname> --file requirements.txt
.The differences between
conda
andpip
need a longer discussion. There are plenty of explanations on StackOverflow. This article by Jake VanderPlas is a great read as well.You might also find this table useful. It lists operation equivalences between
conda
,pip
andvirtualenv
.