我是 Python 新手。在我的系统上安装了 Anaconda。 我也安装了 PyCharm。 当我尝试从 PyCharm 运行文件时,我收到此错误消息:
C:\Python\Test\venv\Scripts\python.exe python 3.6 C:/Python/Test/while.py C:\Python\Test\venv\Scripts\python.exe: can't open file 'python': [Errno 2] No such file or directory
最佳答案
您提到您已经在系统中安装了 Anaconda。您可以尝试以下操作,
- 转到 Pycharm 中的项目解释器
- 在 Conda 环境下,选择现有环境并从解释器字段的 Anaconda 安装文件夹中选择 python.exe。
- 启用选项“对所有项目可用”并单击“确定”。
您现在应该能够在项目解释器中看到库。
关于python - PyCharm 未找到 Anaconda Python,给出 "can' t 打开文件 'python' : [Errno 2] No such file or directory?“,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47807709/