Python is an object-oriented interpreted computer programming language. Its use has the characteristics of cross-platform. It can be used in Linux, macOS, and Windows systems. When the code written by it runs on different platforms, it is almost impossible Major changes are required, and users all benefit from its convenience.
In addition, the power of Python lies in its wide range of applications, covering artificial intelligence, scientific computing, web development, system operation and maintenance, big data and cloud computing, finance, game development, etc. The prerequisite for realizing its powerful functions is that Python has a large number of standard libraries and third-party libraries with relatively complete functions. Through reference to the library, the development of different fields of business can be realized. However, it is precise because of the huge number of libraries that managing these libraries and maintaining them in time has become an important but highly complex thing.
What is Anaconda?
Anaconda is an integrated Python environment. It can be regarded as an integrated installation of Python that provides python, IPython, integrated development environment Spyder and many packages, and modules out of the box. The best thing it is quite easy to install even a novice can install it with just one click on windows, macOS, and Linux operating systems.
Anaconda’s individual edition which open source and free to download and use can be got from its official website.
However, it (anaconda) doesn't always play nice with others. I install vim and (macvim) from Homebrew, and it, along with YouCompleteMe seems to work best with the Homebrew Python. I've had a lot problems getting the dynamic linker on OS X to play nice with the Python lib in Anaconda environments. Now if you run pyenv versions, you should see something like the following:. system (set by /home/tom/.pyenv/version) 2.7.11 3.5.1 3.5.1/envs/myproject myproject So we see that the virtualenv myproject is created successfully. To install libraries into the myproject virtualenv, we have to activate it.
Anaconda has the following characteristics:
Conda Install Python
- Open-source
- Simple installation process
- High performance using Python and R language
- Free community support
- Cloud-based repository with over 7,500 data science and machine learning packages
- 1,000+ open source libraries
- ML/AI pipeline in a central development environment, which can be expanded from laptops to thousands of nodes
- Environment manager
- Conda package
- Open source Anaconda Distribution is the easiest way to perform Python/R data science and machine learning
- Develop and train machine learning and deep learning models using scikit-learn, TensorFlow and Theano
- Use Dask, NumPy, pandas, and Numba to analyze data with scalability and performance
- Use Matplotlib, Bokeh, Datashader, and Holoviews to visualize the result
Contents
- Anaconda Navigator installation on Linux Distributions
- ⑤ Comparison of pip and conda
Anaconda Navigator installation on Linux Distributions
Huawei mobile wifi software free for pc. The script of the Anaconda to install it is available on the official website, thus anyone can get it from there. After that, the process of Anaconda installation for Ubuntu 20.04,18.04,16.04, RedHat, CentOS 8/7, Debian, Kali Linux, Linux Mint, Fedora, and more, will be the same.
Open browser
Go to the official download page of Anaconda and get the individual edition available in a 64-bit installation script for Linux operating systems. The size of the script will be around 550 MB.
If you are using the server command line UI Linux version then can download by first going through the package repository list using the command, for that use:
And then find the version of the script you want to download. For example, while writing this article latest version of the script after running this command we found on the command terminal was: Anaconda3-2020.07-Linux-x86_64.sh
So, to download it run:
Thus, both on Desktop or Server you can run the above command to get the Anaconda3-2020.07 Linux version.
Run Anaconda3 Installation Script on Ubuntu or CentOS
Best Way To Install Python On Mac
It doesn’t matter you are on Ubuntu 20.04/18.04, CentOS 8/7, or any other Linux operating system, the execution of the script to install the Anaconda on your system will be the same.
If you have downloaded it using the browser, then the installation script will automatically go to Downloads folder thus switch to that. Or to the folder where you have saved it.
cd Downloads
ls
![Python conda installation Python conda installation](https://www.macworld.co.uk/cmsdata/features/3635912/how_to_use_python_on_mac_installer_1224.jpg)
Now, use the following syntax
./filename
or
bash filename
The filename is the name of the Anaconda Linux installation script. In our case it was Anaconda3-2020.07-Linux-x86_64.sh, thus the command will be:
![Mac install conda Mac install conda](https://www.programmersought.com/images/893/f6c1b7aec978cdde43a6093ed47e6e25.png)
or
Accept the terms and conditions
The installer will ask you to accept the terms and conditions, that would be a long list. So, if you don’t want to go through it, simply press
Ctrl+C
and then press Y
to accept that.Output:
Reload Barshrc or Current Shell
To start using Anaconda without login out while maintaining the state of the Current Shell or terminal; reload the bash, in simple words reload your profile without restarting or logging out the session.
Test Installation
Use Conda command to know whether the Anaconda is working fine on your system:
The above command will list all packages available in the current environment using the Conda. See more Conda commands (docs).
Create New Anaconda Environments on Linux
If you want to set up a new Anaconda environment for your project, then use the command
conda create
So, for example, if we want to create an environment with Python with a name lets say: “
firstenv
“, so that command will be:conda create -n firstenv
The above command will create an environment without any package, so let’s say we want to create an environment with python and NumPy, thus the command will be:
conda create -n firstenv python numpy
Or you already have an environment than to install packages in that:
conda install -n firstenv python numpy scipy
How to install mods for darkest dungeon mac. To use any specific version of the package, let’s say Python 3.6, instead of writing the only python specify the version along with it, example
python=3.6
In this way, we can install whatever the available packages we want. Also to activate the environment and start working using the command:
conda activate firstenv
To deactivate
conda deactivate
You can learn more about the Anaconda command and setting up environments on the official website documentation page.
Run Anaconda Navigator- Graphical interface on Linux
If you don’t want to run every time different commands for setting up environments and package installation using the conda then use the Anaconda graphical user interface application called Navigator. Just like Windows and macOS, we can use it on Linux as well.
- Open command terminal
- Type:
anaconda-navigator
- Click on the Ok and Don’t Show again button of the pop-up message
- Create or Select the existing environment and start building applications or working with your projects.
Difference between Anaconda, conda, pip, and virtualenv
① Anaconda
- Anaconda is a release version that contains 180+ scientific packages and their dependencies. The scientific packages included include conda, numpy, scipy, ipython notebook, etc.
② conda
- conda is a management tool for packages and their dependencies and environment.
- Applicable languages: Python, R, Ruby, Lua, Scala, Java, JavaScript, C/C++, FORTRAN.
- Applicable platforms: Windows, macOS, Linux
- use:
- Quickly install, run and upgrade packages and their dependencies.
- Easily create, save, load, and switch environments on the computer.
If the package you need requires a different version of Python, you don’t need to switch to a different environment, because conda is also an environment manager. With just a few commands, you can create a completely independent environment to run different Python versions, while continuing to use your usual Python version in your regular environment. —— conda official website - conda was created for the Python project but can be applied to multiple languages mentioned above.
- The conda package and environment manager are included in all versions of Anaconda.
③ pip
- pip is a package manager for installing and managing software packages.
- Pip writing language: Python.
- The version installed by default in Python:
- Python 2.7.9 and later versions: installed by default, the command is
pip
- Python 3.4 and later versions: installed by default, the command is
pip3
- Python 2.7.9 and later versions: installed by default, the command is
- The origin of the pip name: pip uses a recursive abbreviation to name it. Its name is generally believed to come from 2 sources:
- “Pip installs Packages” (“pip install packages”)
- “Pip installs Python” (“pip installs Python”)
④ virtualenv
- virtualenv: A tool for creating an independent Python environment.
- Solve the problem:
- When one program needs to use Python 2.7 version, and another program needs to use Python 3.6 version, how to use both programs at the same time?
- If all programs are installed in the default path of the system, such as:
/usr/lib/python2.7/site-packages
if you accidentally upgrade a program that should not be upgraded, it will affect other programs. - If you want to install a program and modify its library or library version while the program is running, the program will be interrupted.
- When sharing the host, the
site-packages
package cannot be installed in the global catalog.
- virtualenv will create an environment for its own installation directory, it does not with other shared libraries virtualenv environment; but also can selectively be connected to the global library is not installed.
⑤ Comparison of pip and conda
→ Dependency check
- pip:
- It may not necessarily show other required dependencies.
- When installing the package, it may simply ignore the dependencies and install it, only prompting errors in the results.
- conda:
- List other required dependencies.
- The dependencies are automatically installed when the package is installed.
- You can easily switch between different versions of the package.
→ Environmental Management
- pip: It is difficult to maintain multiple environments.
- conda: It is more convenient to switch between different environments, and environment management is relatively simple.
→ Impact on the system’s built-in Python
- pip: **Update/rollback version/uninstallation of the Python package in the system will affect other programs.
- conda: Will not affect the system’s built-in Python.
→ Applicable language
- pip: Only for Python.
- conda: suitable for Python, R, Ruby, Lua, Scala, Java, JavaScript, C/C++, FORTRAN.
Read more: