Schau, ich versuche, eine Python-IDE-Basis auf Ubuntu16.04 zu bauen, und sublime Text 3 ist mein chioce. Anaconda wurde über die Paketsteuerung installiert. Währenddessen funktioniert die automatische Vervollständigung für das ursprüngliche Modul von Python3, aber nicht für Tensorflw.Anacondas automatische Vervollständigung funktioniert nicht für Tensorflow
python3.sublime-build (selbst erstellt):
{ "cmd": ["/usr/bin/python3", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python"
}
So, wie Anacondaâs Auto-Gesamtwerk für das dritte Modul zu machen, das heißt. Tensorflow in diesem Fall. BTW, ich vermute der Grund ist, dass Anaconda die dritten Bibliotheken und Verzeichnisse nicht analysiert, um meinen Code zu suchen und abzuschließen.
Jeder Vorschlag wird zu schätzen wissen. Vielen Dank!
angefügt:
[email protected]:~$ 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
........
[email protected]:~$ 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/
reden Sie IPython auto-complete? – 16num
Wenn Sie ein einfaches Skript mit einer Funktion erstellen, zB: 'def foo (val): print (val)' und importieren Sie es, zeigt die automatische Vervollständigung "foo"? – 16num
Ich habe getan, was Sie beraten, und es funktioniert gut.Ist es ein Klassenbibliothek Pfad Problem? Einige verwandte Informationen wurden auf den Beitrag oben hinzugefügt. Danke! – chuchienshu