This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2336|Reply: 8

[Tips] Windows install the Conda environment management tool

[Copy link]
Posted on 10/30/2024 9:58:20 PM | | | |
Conda is an open-source package management system and environment management system that runs on Windows, macOS, and Linux.

The most common is to use the Conda tool to quickly and easily create multiple independent Python environments to meet projects with different requirements for the Python environment. Similar to the nvm tool in node.js.

Use NVM to install and manage node.js releases
https://www.itsvse.com/thread-10704-1-1.html

Anaconda vs Miniconda comparison

Conda can be thought of as a tool for downloading, installing, and updating packages. Anaconda and Miniconda can be considered as a workbench based on Conda tools, with some pre-installed toolkits, the difference is that the pre-installed toolkits of Anaconda are richer and more comprehensive than Miniconda, but they are larger, while Miniconda is more streamlined.



Download and install Miniconda

Document address:The hyperlink login is visible.
Download Address:The hyperlink login is visible.

After the download is complete, double-click to install toD:\miniconda3folder, and then click the following:



After the installation is complete, the environment variables that are automatically added are as follows:



Enter the following command to view the conda information:



Conda image source

Since the Conda warehouse is abroad, the download is usually relatively slow, you can use the domestic Tsinghua source, refer to:The hyperlink login is visible.

Create a .condarc configuration file using the following command:

edit%USERPROFILE%/.condarcThe file is modified as follows:



Use the following command to clear the index cache:


Conda usage tutorial

Create an environment for python 3.9 release:

Enter the Test1 virtual environment:

View your current environment


Exit the current virtual environment:

Delete the Test1 virtual environment

As shown below:



(End)





Previous:Practical combat: Linux uses firewall-cmd to manage firewalls
Next:Two commonly used data sets for object detection, COCO and VOC
 Landlord| Posted on 2/11/2025 10:53:09 AM |
With pyenv, you can install and manage multiple versions:The hyperlink login is visible.

Linux uses pyenv to install the Python environment
https://www.itsvse.com/thread-10942-1-1.html
 Landlord| Posted on 3/5/2025 10:40:18 AM |
uv a blazing-fast Python package and project manager written in Rust. :https://docs.astral.sh/uv/
 Landlord| Posted on 3/6/2025 9:23:11 AM |
Linux install the Miniconda3 command
After execution, restart the terminal
 Landlord| Posted on 3/6/2025 1:13:58 PM |
 Landlord| Posted on 5/6/2025 10:38:53 AM |
Windows installs the Miniconda software silently (command line).

The command is as follows:

To run Miniconda's Windows installer in silent mode, use the /s parameter. The following optional parameters are supported:

/InstallationType=[JustMe|AllUsers]— 默认为JustMe。
/AddToPath=[0|1]——默认是 1
/RegisterPython=[0|1]— 将其设为系统的默认 Python。 0表示JustMe,这是默认值。1 表示AllUsers.
/S— 以静默模式安装。
/D=<installation path>——目标安装路径。必须是最后一个参数。不要用引号括起来。如果您使用/S.
All parameters are case-sensitive.

Reference:The hyperlink login is visible.
 Landlord| Posted on 8/4/2025 11:01:34 AM |
CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels. Please accept or remove them before proceeding:
    •https://repo.anaconda.com/pkgs/main
    •https://repo.anaconda.com/pkgs/r
    •https://repo.anaconda.com/pkgs/msys2

To accept a channel's Terms of Service, run the following and replace `CHANNEL` with the channel name/URL:
    ‣ conda tos accept --override-channels --channel CHANNEL

To remove channels with rejected Terms of Service, run the following and replace `CHANNEL` with the channel name/URL:
    ‣ conda config --remove channels CHANNEL

solution

Accept the terms and execute the order as follows:
 Landlord| Posted on 8/4/2025 11:14:39 AM |
Add Tsinghua channel commands directly:
 Landlord| Posted on 11/4/2025 3:08:15 PM |
conda CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.

Solution, turn off certificate validation with the following command:

Reference:The hyperlink login is visible.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com