OK.
Ich habe es gerade nochmal ausprobiert. In Visual Studio Code kann ich die Anaconda Env nutzen. Da funktioniert der Code. In Jupyter Notebooks gibt es auch keine Fehler.
Nur bei PyCharm bekomme ich die Umgebung nicht auf die Ananconda3 Installation gebogen

Ich verstehe es nicht. Mehr als die Env auswählen : Wo liegt die python.exe kann man da doch gar nicht falsch machen.
Code: Alles auswählen
Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.2.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.2.0
Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] on win32
import sys
for p in sys.path:
print(p)
C:\EigeneProgramme\PyCharm Edu 2018.3\helpers\pydev
C:\EigeneProgramme\PyCharm Edu 2018.3\helpers\third_party\thriftpy
C:\EigeneProgramme\PyCharm Edu 2018.3\helpers\pydev
C:\EigeneProgramme\anaconda3\python37.zip
C:\EigeneProgramme\anaconda3\DLLs
C:\EigeneProgramme\anaconda3\lib
C:\EigeneProgramme\anaconda3
C:\EigeneProgramme\anaconda3\lib\site-packages
C:\EigeneProgramme\anaconda3\lib\site-packages\win32
C:\EigeneProgramme\anaconda3\lib\site-packages\win32\lib
C:\EigeneProgramme\anaconda3\lib\site-packages\Pythonwin
C:\EigeneProgramme\anaconda3\lib\site-packages\IPython\extensions
C:\EigeneProgramme\anaconda3
C:\Python\QtUI
C:\Python\QtUI\.idea\inspectionProfiles
C:/EigeneProgramme/anaconda3
from qtpy import QtWidgets
Traceback (most recent call last):
File "C:\EigeneProgramme\anaconda3\lib\site-packages\qtpy\__init__.py", line 199, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
File "C:\EigeneProgramme\PyCharm Edu 2018.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\EigeneProgramme\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3267, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-4-729da1374925>", line 1, in <module>
from qtpy import QtWidgets
File "C:\EigeneProgramme\PyCharm Edu 2018.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\EigeneProgramme\anaconda3\lib\site-packages\qtpy\__init__.py", line 205, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found