

























查找pip.ini文件,添加以下代码
[global]
index-url = http://pypi.tuna.tsinghua.edu.cn/simple/
[install]
trusted-host = pypi.tuna.tsinghua.edu.cn
单个项目: pyproject.toml文件加入以下内容可以加速
[[tool.poetry.source]]
name="aliyun"
url="http://pypi.tuna.tsinghua.edu.cn/simple/"
default=true
如果上面报错 执行 poetry lock --no-update
poetry run python app/main.py
-- 创建名为 python3115 的python版本为3.11.5的环境
conda create --name python3115 python=3.11.5
conda info --envs
activate python3115
conda list
conda env list
conda info -e
conda update conda
conda install -n your_env_name [package]
pip install requests
deactivate env_name 或者 activate root 切回root环境. Linux下:source deactivate
conda remove -n your_env_name --all
conda remove --name $your_env_name $package_name
conda remove requests
pip uninstall requests
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。