Use of Anaconda in Ubuntu

New Anaconda environment on Ubuntu###

1. Anaconda environment#

The ubuntu system has python2 and python3 environments by default, but we do not use the system environment.

As a programmer, I don't know how many projects will be developed in the future, nor how complicated the environment will be in the future.

There is only such a set of system default environment. If there are more projects in the future, each project will load its own software dependencies into the default environment, which may cause system dependencies problems.

Our normal practice is that each project has its own unique set of environment, which will not conflict with other project environments and will not interfere with each other.

Anaconda is used to solve this environmental problem.

2. Create a new environment#

Open a command line terminal:

conda create -n environment name python=x.x.x

conda create -n environment name means to create a new environment
python=xxx means that in this environment, install pythonx.xx version

Will always prompt whether to install or not, just enter Y

3. Installation dependencies#

After the installation is complete, if you need to install dependencies, enter on the command line:

conda activate environment name

conda activate environment name means to enter the newly established independent environment

After entering the pyqt environment, enter on the command line:

conda install dependency name

conda install pyqt means to install dependencies in the current environment.

It will always prompt whether to install or not, just enter Y.

4. Pycharm development tools#

5. Enter and exit the base environment#

Enter the conda base environment

conda activate base

Exit the conda base environment

conda deactivate

If you cancel the base environment that automatically activates conda every time you start it, you can achieve it by setting the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Edit conda environment variables

nano ~/.bashrc

Recommended Posts

Use of Anaconda in Ubuntu
Use supervisor in ubuntu
Introduction to the use of Hanlp in ubuntu
Installation and use of SSH in Ubuntu environment
Use of mediawiki under ubuntu
Installation and use of GDAL in Python under Ubuntu
Use of Pandas in Python development
How to use hanlp in ubuntu
Use disk quota in ubuntu multi-user
Detailed use of nmcli in CentOS8
Use of numpy in Python development
Common exceptions and solutions in the use and development of Ubuntu system
Ubuntu use notes
Installation and deployment of Nginx in Ubuntu
Detailed explanation of the installation and use of SSH in the Ubuntu environment
Installation and use of Win10 subsystem Ubuntu
ubuntu zip/unzip use
How to configure TensorFlow use environment in Ubuntu
Summary of methods to use Evernote under Ubuntu 14.04
How to use dpkg command in Ubuntu system
Use Ubuntu and windows system in virtual machine
The use of crontab for ubuntu scheduled tasks
The consequences of uninstalling python in ubuntu, very
Installation, configuration and uninstallation of GitLab in Ubuntu19.1
Install mysql-pytho in Ubuntu
Use iptables under ubuntu
Python|The use of operators
Install python in Ubuntu
Install JDK in Ubuntu19.10
ubuntu 14.04 16.04 18.04 use Alibaba source
3D effect of ubuntu
Summary of ubuntu usage
Use Cobbler to automate batch deployment of CentOS / Ubuntu
How to use Putty to log in to ubuntu installed in VirtualBox
Installation and simple practice of MySQL in ubuntu environment (1)
Example of how to modify ip address in Ubuntu20.04
Install VMware Tools in Ubuntu 18.04
Subscripts of tuples in Python
Use sublime tex under ubuntu
ufw of ubuntu firewall rules
Encountered in the process of building a virtual environment in ubuntu
Use virtualbox to deploy ubuntu
Summary of various ubuntu problems
Core dump debugging in ubuntu
Initial setup of Ubuntu 16.04 server
Ubuntu basic settings: introduction to the installation and use of openssh-server
The usage of wheel in python
How to install Helm in Ubuntu
Summary of logarithm method in Python
Use QQ under Ubuntu 13.10, suitable for 14.10
Use nohup command instructions in python
Detailed explanation of ubuntu using gpg2
Installation of deb package under Ubuntu
How to install Anaconda3 on Ubuntu 18.04
How to install mysql in Ubuntu 14.04
Summary of Ubuntu commonly used commands
Install and configure Docker in Ubuntu
Overview of the Ubuntu file system
What is the use of Python
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
[Linux] Some high-efficiency tools of Ubuntu