Python data analysis of anaconda installation and use

Python data analysis of anaconda installation and use

Today I started to learn Python data analysis. When it comes to Python data analysis, everyone would recommend using anaconda, but as a beginner, I always have a lot of doubts, but I have solved a part of it in practice. Let me share with you first.

doubt

The biggest doubt is: Will installing anaconda conflict with the previously installed Python?

Which one is used in pycharm?

Don’t worry, we open the default settings of pycharm

Just choose the corresponding one, there is no need to worry about conflicts

Where is the installation library installed?

Which Python version is okay, but where will I install the library? I opened the cmd command window and typed Python. The default is anaconda. At this time, I was in deep thought: What should I do if I want pip install to download the package to the previously downloaded Python? I have provided two solutions: 1. Install after selecting the environment in pycharm (this method is not particularly good, the pycharm installation package is not easy to use) 2. Download the source on the Internet and copy it locally and find the folder. (Pictured)

In fact, after using it a few times, I found that anaconda is very useful. You can create multiple environments and switch freely.

Installation and use of anaconda

Hey, I didn't go to the official website to download it. It was too slow. I found a Tsinghua mirror. Can a kind friend share one for me (win7, 64-bit). The installation process is very simple, you can solve it by yourself.

use

1 open anaconda

2 View version status

conda --version

3 Create and use the environment (emphasis)

conda create --name xxx python=2 #xxx is the name of the environment, and an environment with python version 2 is created
conda create --name xxx python=3 #Created an environment with python version 3
conda create --name xxx python=3 anaconda #Created an environment with python version 3 and has all the packages of anaconda
conda info --envs #View environment
activate xxx #Activate the environment
deactivate xxx #Exit the environment
conda remove --name xxx --all # delete an existing environment

4 Package installation and uninstallation

conda install xxx #xxx is the package name
conda remove xxx #Uninstall package
pip install xxx
pip uninstall xxx

Feel the jupyter notebook

Data analysis will basically run in jupyter notebook, and feel the collocation between arts and sciences.

Reference: https://cloud.tencent.com/developer/article/1394192 Python data analysis of anaconda installation and use-Cloud + Community-Tencent Cloud