AnacondaPython Multi-Environment Package Management Tool is now in session
Course address: https://edu.csdn.net/course/detail/9998
one
Course Description.
Python has a large and relatively well-featured set of standard and third-party libraries. The reference to the library enables the development of different areas of business. However, the sheer number of libraries makes managing them and maintaining them in a timely manner both important and complex. Anaconda is the best solution for python versioning and package management.
2. distinction
Anaconda has the following features.
expand one's financial resources
Easy installation process
High performance using Python and R
Free community support
The implementation of its features is largely based on Anaconda's possession of.
conda bag
Environment Manager
1,000+ Open Source Libraries
3. Difference between anaconda, conda, pip, virtualenv
Anaconda
Anaconda is a distribution containing 180+ scientific packages and their dependencies. Its included science packages include: conda, numpy, scipy, Ipython notebook, etc.
conda
conda is a management tool for packages and their dependencies and environments.
Applicable languages: Python, R, Ruby, Lua, Scala, Java, JavaScript, C/C++, Fortran.
Platform: Windows, macOS, Linux
Uses.
Quickly install, run and upgrade packages and their dependencies.
Easily create, save, load and switch environments in your computer.
If the package you need requires a different version of Python, you don't need to switch to a different environment, as conda is also an environment manager. With just a few commands, you can create a completely separate environment to run different versions of Python, while continuing to use your usual version of Python in your regular environment. --Conda official website
conda was created for Python projects, but can be applied to multiple languages as described above.
The conda package and environment manager are included in all versions of Anaconda.
pip
pip is the package manager used to install and manage packages.
pip writing language: python.
Default installed version in Python.
Python 2.7.9 and later: installed by default, with the command pip
Python 3.4 and later: installed by default, with the command pip3
Origin of pip name: pip is named using recursive abbreviations. Its name is widely believed to be derived from 2 places.
"Pip installs Packages" ("pip installs packages")
"Pip installs Python"
virtualenv
virtualenv is the tool used to create a standalone Python environment.
Problem solving.
When one program needs to use Python version 2.7 and another program needs to use Python version 3.6, how can I use both programs at the same time? If all programs are installed in the default path under the system, e.g. /usr/lib/python2.7/site-packages, when accidentally upgrading programs that should not be upgraded, it will affect other programs.
Trying to install a program and making changes to its libraries or library versions while the program is running can cause the program to break.
It is not possible to install packages in the global site-packages directory when sharing hosting.
virtualenv will create an environment for its own installation directory, which does not share libraries with other virtualenv environments; it can also optionally not connect to the installed global libraries.