Pycharm无法找到已安装的软件包:keras [英] Pycharm cannot find installed packages: keras

查看:497
本文介绍了Pycharm无法找到已安装的软件包:keras的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行Ubuntu 14.04的PC上安装了pycharm-2016.1.4.我已经使用pip install keras和pycharm 可以之前找到它安装了keras(一个python包).但是它无法找到现在的keras.我没有修改任何设置,因此可能会出现此问题.我的python版本是python2.7.

I installed pycharm-2016.1.4 in my PC running Ubuntu 14.04. I have installed keras (a python package) using pip install keras and pycharm can find it before. But it cannot find keras now. I do not modify any settings, so this problem may be wired. My python version is python2.7.

我使用pip list验证我是否安装了keras:

I use pip list to verify that I have keras installed:

但是请使用以下方法在pycharm中检查此软件包:设置->项目->项目解释器. Keras在软件包列表中(使用的解释器与终端中的which python的结果相同).

But check this package in pycharm by using: Settings -> Project -> Project Interpreter. Keras is NOT in package list (The interpreter used is the same as the result of which python in terminal).

欢迎提出任何建议.谢谢.

Any suggestions are welcome. Thank you.

推荐答案

我不知道发生了什么,但是问题可以通过以下步骤解决.

I do not know what happened, but the problem solved with the following steps.

  1. 卸载旧的keras
  2. 重新安装keras:pip install keras

然后我可以import keras在pycharm中.

Then I can import keras in pycharm.

注意:很奇怪,因为我安装了keras,但在 Project Interpreter的软件包列表中找不到它.

NOTE: It is strange since I have keras installed but cannot find it in Project Interpreter's package list.

这篇关于Pycharm无法找到已安装的软件包:keras的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆