听着,我正在尝试构建一个基于Ubuntu16.04的Python IDE,sublime Text 3是我的首选。Anaconda是通过Control.meanwhile包安装的,它的自动补全功能适用于Python3的原始模块,但不适用于tensorflw。
Python3.sublime-build(我自己创建):
{ "cmd": ["/usr/bin/python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python"
}那么,如何使Anaconda的自动补全功能适用于第三个模块,即本例中的tensorflow。顺便说一句,我认为原因是Anaconda不会解析第三个库和目录来查找我的代码并完成它。
任何建议都会被appreciate.Thanka很多!
附加:
chuchienshu@chuchienshu-virtual-machine:~$ ll /usr/lib/python3.5/
total 4500
drwxr-xr-x 34 root root 4096 5月 18 12:36 ./
drwxrwxrwx 140 root root 4096 5月 11 23:18 ../
-rw-r--r-- 1 root root 8628 11月 18 03:19 abc.py
-rw-r--r-- 1 root root 31578 11月 18 03:19 aifc.py
-rw-r--r-- 1 root root 475 11月 18 03:19 antigravity.py
-rw-r--r-- 1 root root 90323 11月 18 03:19 argparse.py
-rw-r--r-- 1 root root 12001 11月 18 03:19 ast.py
-rw-r--r-- 1 root root 11971 11月 18 03:19 asynchat.py
drwxr-xr-x 3 root root 4096 2月 16 04:21 asyncio/
-rw-r--r-- 1 root root 20104 11月 18 03:19 asyncore.py
........
chuchienshu@chuchienshu-virtual-machine:~$ ll /home/chuchienshu/.local/lib/python3.5/site-packages/
appdirs-1.4.3.dist-info/ pyparsing-2.2.0.dist-info/
appdirs.py pyparsing.py
easy_install.py setuptools/
external/ setuptools-35.0.2.dist-info/
google/ six-1.10.0.dist-info/
numpy/ six.py
numpy-1.12.1.dist-info/ tensorflow/
packaging/ tensorflow-1.1.0.dist-info/
packaging-16.8.dist-info/ werkzeug/
pkg_resources/ Werkzeug-0.12.1.dist-info/
protobuf-3.3.0.dist-info/ wheel/
protobuf-3.3.0-py3.5-nspkg.pth wheel-0.29.0.dist-info/发布于 2017-05-18 23:10:43
Anaconda有自己的包管理器。从命令行尝试执行此操作
conda install -c conda-forge tensorflow=1.0.0以下是conda提供的其他版本的列表。https://anaconda.org/conda-forge/tensorflow/files
https://stackoverflow.com/questions/44046670
复制相似问题