简体   繁体   English

Tensorflow 可以在 Pycharm 中使用,但在 __init__.py 中找不到引用 `xxx`

[英]Tensorflow can be used in Pycharm, but cannot find reference `xxx` in __init__.py

I am using tensorlfow 2.0 in Pycharm 2019, it seems that it can be used normally, and the code will be completed automatically.我在Pycharm 2019中使用的是tensorlfow 2.0,貌似可以正常使用,代码会自动补全。 But Pycharm keeps showing cannot find reference xxx in __init__.py .但是 Pycharm 一直显示cannot find reference xxx in __init__.py The following image is the result of my run.下图是我运行的结果。 by the way, my OS is Ubuntu 16.04, And I use anaconda to manage my python.顺便说一下,我的操作系统是 Ubuntu 16.04,我使用 anaconda 来管理我的 python。 Please help me, thanks!请帮助我,谢谢!

在此处输入图像描述

Should be fixed in 2019.3 release.应在 2019.3 版本中修复。 See the relevant ticket in PyCharm's bug tracker https://youtrack.jetbrains.com/issue/PY-37589请参阅 PyCharm 错误跟踪器中的相关票证https://youtrack.jetbrains.com/issue/PY-37589

Btw 2019.3 release candidate is already available, feel free to grab it from https://www.jetbrains.com/pycharm/nextversion/顺便说一句,2019.3 候选版本已经可用,请随时从https://www.jetbrains.com/pycharm/nextversion/获取它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 __init__.py 中找不到引用“xxx” - Cannot find reference 'xxx' in __init__.py 在“__init__.py”中找不到参考“TextVectorization” - Cannot find reference 'TextVectorization' in '__init__.py' Python 3 Opencv 设置问题:“在 __init__.py 中找不到引用‘VideoCapture’” on Pycharm IDE - Python 3 Opencv set up problem: "cannot find reference 'VideoCapture' in __init__.py" on Pycharm IDE PyCharm 在 __init__.py 中找不到任何 OpenCV function 的参考 - PyCharm can´t find reference of any OpenCV function in __init__.py 在 __init__.py [暂停] 中找不到引用“ref_name” - Cannot find reference 'ref_name' in __init__.py [on hold] 为什么 pygame 在“__init__.py”中找不到引用“...”? - Why pygame cannot find reference '…' in '__init__.py'? PyCharm:在'turtle.py'中找不到引用'xxx' - PyCharm: Cannot find reference 'xxx' in 'turtle.py' 在“ __init __。py” Google自定义搜索API中找不到引用“发现” - Cannot find reference 'discovery' in '__init__.py' Google custom search API 安装 opencv 后,如何解决 python 中的“Cannot find reference 'imread' in '__init__.py”错误? - How to resolve this error of "Cannot find reference 'imread' in '__init__.py" in python after installing opencv? __init__.py 找不到本地模块 - __init__.py can't find local modules
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM