python - 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
- 鉴于未安装 conda 解释器,如何为当前项目启用科学模式?
如何从 PyCharm 中安装 conda 包(解释器) - 是什么缺陷阻止了 PYcharm 在编辑器中检测到 import 语句并给出消息“No module named numpy”并提供安装 NumPy。
- 导致 pip 错误的原因是什么?
解决方案
推荐阅读
- python - 如何在调试 cpython 时遍历 Python 操作码?
- javascript - 如何修复 Umbraco 中的以下 jQuery Validate 问题?
- java - Java 优化算法
- db2 - Db2 for I:Cpyf *nochk 仿真
- java - RestAssured 中的超时错误,而服务在 postman/soapUI 中给出响应
- vue.js - $refs.myChildComponent 未定义,尽管我在控制台中看到它
- java - 我将如何使用 Java 技术将图书馆管理系统开发为 Web 应用程序
- javascript - 初始化 jquery 插件时设置 scrollTop
- ehcache - 如何使用 EhCache3 在 Spring Boot 2 中从外部位置加载 ehCache.xml
- angular - 模块“ComponentsModule”声明的意外值“DecoratorFactory”