1、shell脚本
#! /bin/bash
sudo apt install -y python3-pip
mkdir ~/.pip
echo -e "[global]\ntrusted-host=mirrors.aliyun.com\nindex-url=https://mirrors.aliyun.com/pypi/simple/" > ~/.pip/pip.conf
pip3 install jupyter jupyterlab
cd ~/Downloads/
wget https://download-cf.jetbrains.com/python/pycharm-community-2021.1.tar.gz
gzip -d pycharm-community-2021.1.tar.gz
tar -xvf pycharm-community-2021.1.tar
sudo mv pycharm-community-2021.1 /opt/pycharm
echo "alias pycharm=/opt/pycharm/bin/pycharm.sh" >> ~/.bashrc
source ~/.bashrc
#conda
2、过程
#sudo apt install python-pip
sudo apt install python3-pip
mkdir ~/.pip
vim ~/.pip/pip.conf
#将一下内容复制进去
[global]
trusted-host=mirrors.aliyun.com
index-url=https://mirrors.aliyun.com/pypi/simple/
网友评论