首页 > 解决方案 > conda 包无法安装到 PyCharm 虚拟环境中?

问题描述

尝试从 File-->Settings-->Python Interpreter 安装 conda 包失败。以下是输出

来自 PyCharm 的消息是

ERROR: Could not find a version that satisfies the requirement menuinst (from conda) (from versions: none)

try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '<UserName>\Pycharm\pythonProject\venv\Scripts\python.exe'.

的输出

 <UserName>\PyCharm\pythonProject\venv\Scripts\python.exe -m pip --version

pip 20.2.4。PyCharm 解释器设置中的 pip 版本也是 pip 20.2.4

当我第一次尝试通过键入 numpy 来导入 numpy 时import numpy as np,PyCharm 没有成功安装 numpy 并从终端给出使用 pip 安装的消息,从终端安装也不成功。然后 Numpy 是从 Python 解释器设置中的 File-->Settings 安装的。之后,在安装 NumPy 之前,PyCharm 甚至无法检测到 import 语句并提供安装 NumPy

标签: pythonnumpypycharmconda

解决方案


推荐阅读