Beginner Pycharm Import anaconda

Novice Pycharm, is always unsuccessful in importing anaconda
the code is as follows:
Traceback (most recent call last):
File "C:Program FilesJetBrainsPyCharm 2018.1.4helperspydevpydev_run_in_console.py", line 52, in run_file
Running C:/Users/lenovo/PycharmProjects/untitled/test.py

pydev_imports.execfile(file, globals, locals)  -sharp execute the script

File "C:Program FilesJetBrainsPyCharm 2018.1.4helperspydev_pydev_imps_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, "exec"), glob, loc)

File "C:/Users/lenovo/PycharmProjects/untitled/test.py", line 3

print n

find a solution ~

Mar.20,2021

1. Add Anaconda python.exe. to Files > > Default Settings (or Settings) > Project Interpreter > > Add local of Pycharm
2. You can also configure the source anaconda with pip.
conda config-- add channels https://mirrors.tuna.tsinghua.

conda config-- set show_channel_urls yes

Menu