conda换国内源安装python包

该博客介绍了如何配置conda和pip使用清华大学的镜像源来加速软件包的下载和安装,包括numpy、pandas等常用库。此外,还提供了如何切换回默认源的步骤,并涉及pytorch、kite等高级工具的安装。同时,列举了一系列的信息处理工具包如cocoNLP、wordninja等的安装方法。
摘要由CSDN通过智能技术生成

换清华源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --set show_channel_urls yes

换回默认源

conda config --remove-key channels

通用包


conda install numpy pandas scipy xlwt zipp requests seaborn statsmodels pyopenssl scikit-learn scrapy matplotlib nltk httpx PyMySQL spacy sympy seaborn plotly Pillow pandocfilters
pip install jupyter notebook -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install xgboost -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install you-get -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install pypinyin -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install regex -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install hanlp -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install networkx -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install newspaper3k -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install flake8  -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install cryptography -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install zhon -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install jieba -i https://pypi.tuna.tsinghua.edu.cn/simple/

# 信息处理工具包
git clone https://github.com/fighting41love/cocoNLP.git
cd cocoNLP
python setup.py install
pip install wordninja
pip install ngender
pip install langid
pip install langdetect

cupy

conda install cupy

清华源下载pytorch

conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda install pytorch torchvision torchaudio cudatoolkit=10.2 

linux服务器安装kite

pip install jupyterlab -U
pip install "jupyterlab-kite>=2.0.2"
bash -c "$(wget -q -O - https://linux.kite.com/dls/linux/current)"
systemctl --user start kite-autostart
/root/.local/share/kite/kited
jupyter lab --allow-root
  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值