python环境配置,第三方包安装引用过程中遇到的问题汇总

发布时间 2023-10-27 22:06:11作者: 韩、饭饭
  • 问题1:安装出现:Pytest already satisfied,因为其他目录下已经安装过了,但是需要安装到解释器指定的目录
  • 问题2:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))   即链接超时,使用镜像即可
pip install --target=E:\XXXTest\autotest\venv\Lib\site-packages pytest -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirror

s.aliyun.com

以上命令,pytest之前是解决安装在哪里的问题,pytest之后是解决使用的镜像的问题