conda环境下无法pip install[Missing dependencies for SOCKS support]

Windows在conda环境下使用pip install时出现如下错误

ERROR: Could not install packages due to an OSError: Missing dependencies for SOCKS support.

本人Windows系统,新建了个conda环境,本想pip install openai这个库,谁知道报错如下。查到了很多博主的方法,但那都是Linux的方案,而且大多数不是针对conda环境下的解决方案,所以写篇文章解决这个问题!

解决方案:

方法其实很简单,只需要安装pysocks这个库即可,如下

cpp 复制代码
conda install pysocks

安装完这个库之后再pip install就不会报错了,完美解决!

相关推荐
沧海一笑-dj3 天前
【Python】Python学习笔记-模块与包
python·pip·模块·包·python包·python模块·包与模块
郝学胜-神的一滴4 天前
AI 编程智能体 16:从零基础搭建到精细化优化
人工智能·python·算法·语言模型·langchain·pip
万粉变现经纪人6 天前
如何解决 pip install 安装报错 检测到 yanked 版本需更换可用版本 问题
人工智能·python·scrapy·numpy·pandas·pyqt·pip
jiangliushi68 天前
GPT-6.1 Sol 免费用:pip install 太慢、超时?换清华镜像,再让 Codex 帮你写脚本
gpt·pip
看我debug11 天前
Android 运行时分析工作台 (Demo)。统一管理 Frida 脚本、自动注入(修改运行时代码)、收集结构化结果、生成 JSON 报告。
android·python·pip
benjiangliu12 天前
恩培趣味计算机视觉-01-conda环境和Python库
开发语言·python·conda
weixin_4617694016 天前
conda create 创建容器 Failed to resolve ‘repo.anaconda.com‘问题
开发语言·python·conda·repo·网络问题·无法创建
饭来_20 天前
Ubuntu 中出现 CondaToSNonInteractiveError 的解决方法
ubuntu·conda·debug
emo_2b22 天前
Pycharm配置conda解释器时遇到的问题及解决方法
linux·pycharm·conda
Είναι η κοπέλα24 天前
llama.cpp 与 GGUF 格式:本地大模型的“裸引擎“
开发语言·人工智能·pytorch·python·conda