[Configure the linux environment]

Configure the linux environment

1.miniconda

miniconda installation tutorial

  • After installation, activate the conda environment and create a new conda virtual environment for each project

2. pip change source

Act 1

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/

View pip source

pip config list

Modify the configuration file

First create a folder .pip in the current user directory, then create a pip.conf file in the folder, and then add the source address to it.

mkdir ~/.pip
vim ~/.pip/pip.conf

Then copy the following two lines into it

[global]
index-url = https://mirrors.aliyun.com/pypi/simple

Other domestic pip sources

清华:https://pypi.tuna.tsinghua.edu.cn/simple
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/

Note: Whether you use pip3 or pip, the method is the same, and the pip folder is created.

zip unzip

The zip command is not installed by default on the liunx server, so it needs to be installed when using:
apt-get install zip or yum install zip

Linux install unzip command:
apt-get install unzip or yum install unzip

Check the ubuntu version : reference page

CUDA

Guess you like

Origin blog.csdn.net/m0_51711485/article/details/125888510