再conda虚拟环境中使用pip安装不安装到全局,同时使用清华源便捷加速安装

python -m pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirments.txt

注:

python -m:使用虚拟环境中的python的pip方法

-i https://pypi.tuna.tsinghua.edu.cn/simple:使用清华源

或 python -m pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple *package name*

发布了25 篇原创文章 · 获赞 28 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/maitianpt/article/details/104284243