First of all, there are many articles on the Internet about their differences , The complete content will not be repeated :
- https://www.askpython.com/pyt...
- https://www.anaconda.com/blog...
- https://stackoverflow.com/que...
Briefly summarize the key points , As a basis for choice :
- conda Inside python The number of libraries is very small , Only 1500+, If it is not a well-known library, don't think about it ; by comparison pip Source has 23 ten thousand + Library resources for , Two orders of magnitude higher
- however pip There is an obvious drawback : When installing a library , With the corresponding dependence of fashion , However, if this dependency already exists , And different from the expected version , Then it will delete the current library regardless , Reinstall the required version , This often results in new installations , Some of the existing libraries are unusable ; and conda Will execute accordingly SAT test , Try to ensure the compatibility of all versions
Conclusion :python The dependent libraries , Try... First conda, If there is any, just install it , No more pip install .