[Note] List of basic commands for building python / conda environment

The basic commands for building an environment with python and conda are summarized.

pip --pip update

pip install -U pip
pip install --upgrade pip

--Package installation

pip install packageName

--Install by specifying the version

pip install 'packageName==1.1.2'

--Package update (-U or —update)

pip install -U packageName

--Uninstall package

pip uninstall -y packageName

--Check the package

pip list # list
pip  pip list -o # show outdated

--Check the package version

pip freeze

--Export configuration file

pip freeze > requirements.txt # create package list

--Reading the configuration file

python -m pip install -r requirements.txt

conda --conda update

conda update conda

--Create virtual environment (specify python version)

conda create -n env-x python=3.5

--Create virtual environment (read yaml file)

conda env create -f env1.yaml 

--Display the list of created virtual environments

conda info -e

--Switch to the created virtual environment

source activate env1

--Get out of the current virtual environment

source deactivate

--Delete virtual environment

conda env remove -n env1
conda remove —-all

--Export the current virtual environment configuration file

conda env export > env1.yaml

--Check the package of the current virtual environment

conda list

reference

Recommended Posts

[Note] List of basic commands for building python / conda environment
Recommendation of building a portable Python environment with conda
python note: map -do the same for each element of the list
[Mac] Building a virtual environment for Python
Basic grammar of Python3 series (list, tuple)
Building a conda environment for ROS users
Building a Python development environment for AI development
Selenium + WebDriver (Chrome) + Python | Building environment for scraping
Building an environment for executing Python scripts (for mac)
Building an Anaconda environment for Python with pyenv
Basic operation list of Python3 list, tuple, dictionary, set
Various commands for building an environment with Apache
Commands for creating a python3 environment with virtualenv
Basic story of inheritance in Python (for beginners)
List of python modules
Unification of Python environment
Python basic grammar note (4)
Python basic grammar note (3)
Basic knowledge of Python
Python environment for projects
Mayungo's Python Learning Note: List of stories and links
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
List of Python libraries for data scientists and data engineers
Building a Docker working environment for R and Python
List of sample program distribution sites for python books
Summary of python environment settings for myself [mac] [ubuntu]
Make a note of the list of basic Pandas usage
Building an environment for natural language processing with Python
Procedure for building a CDK environment on Windows (Python)
Python: Get a list of methods for an object
conda memorandum: Building a Python environment with supercomputer ITO
Building a Python environment for programming beginners (Mac OS)
Memo for building a machine learning environment using Python
Python list, for statement, dictionary
Summary of Python3 list operations
Check the operation of Python for .NET in each environment
Building a python environment for artificial intelligence (Chainer / TensorFlow / CSLAIER)
Python Basic Course (5 List Tuples)
Building a development environment for Android apps-creating Android apps in Python
Building a Hy environment for Lisper who hasn't touched Python
Python environment construction For Mac
[Python] Building a virtual python environment for the pyramid tutorial (summary)
Python3 environment construction (for beginners)
Building a Python virtual environment
Basic Python grammar for beginners
3 months note for starting Python
[Python] Copy of multidimensional list
[For organizing] Python development environment
[Python / PyQ] 4. list, for statement
Basic usage of Python f-string
Python #list for super beginners
Basic commands for file operations
Python environment construction and SQL execution example to DB and memo of basic processing for statistics 2019
Building a Python virtual environment
Environment construction of python2 & 3 (OSX)
Create another version of Python conda environment with one command line
Building a Docker working environment for R and Python 2: Japanese support
Build and test a CI environment for multiple versions of Python
Example of building python development environment on windows (wsl2, vscode, pipenv)
[Python] Organize the basic structure of Flask apps (Aim for de-copying)
How about Anaconda for building a machine learning environment in Python?