PyCharm 5.0.1无法解析内置模块/方法 [英] PyCharm 5.0.1 doesn't resolve builtin modules / methods

查看:108
本文介绍了PyCharm 5.0.1无法解析内置模块/方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PyCharm 5.0.1安装无法解析对任何内置模块或方法的引用:

My PyCharm 5.0.1 installation does not resolve references to any builtin modules or methods:

如您所见,我已经在cygwin上安装了python.

As you can see, I have installed python over cygwin.

我已经尝试过:

  • 重新安装/更新python安装(从2.7.9到2.7.10)
  • 重新安装pycharm
  • 在pycharm安装目录的python-skeletons中添加解释器路径(在保存设置时,ide会立即将其删除,这意味着它已经被嵌入)
  • 删除解释器(这将删除警告,同时也删除代码完成,并且import asdflkjasd也有效)
  • 在解释程序包选项中添加/lib/python2.7/site-packages/等各种路径
  • reinstalling / updating the python installation (from 2.7.9 to 2.7.10)
  • reinstalling pycharm
  • adding a interpreter path to the python-skeletons in the pycharm installation directory (this was immediately removed by the ide when saving the settings, implying, that it already is embedded)
  • removing the interpreter (this removes the warnings, but also the code completion, and import asdflkjasd is valid as well)
  • adding various paths like /lib/python2.7/site-packages/ to the interpreter packages option

这些都没有改善情况. 不用在cygwin之外一起安装怎么办?

None of these improved the situation. How can I fix this without installation outside of cygwin alltogether?

推荐答案

我使用Windows 10 x64,Python 3.5.1和PyCharm Community Edition 2016.1.4

我遇到了同样的问题,在管理员模式下由runnig PyCharm解决了(只需一次).

I have the same problem and sovled it by runnig PyCharm in admin mode (it is required only once).

这篇关于PyCharm 5.0.1无法解析内置模块/方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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