如何配置环境变量路径,以确保它从水蟒中打开python

问题描述 投票:0回答:1

我在PC(win10)上安装了Anconda3。当我尝试使用numpy时,出现以下错误:“ ModuleNotFoundError:没有名为“ numpy”的模块”。我编辑环境变量并添加以下内容:PYTON_HOME(C:\ Users \ User_name \ anaconda3)并将其也添加到路径。但是当我运行“ where python3”时,我仍然得到:“ C:\ Users \ WIN10 \ AppData \ Local \ Microsoft \ WindowsApps \ python3.exe”如何解决这个问题?

numpy windows-10 anaconda environment-variables python-3.7
1个回答
0
投票

请尝试以下步骤:

In the Control Panel => System and Security => System => Edit the System Environment Variable

In the new window System Properties => Advanced => Environment Variables, set Path as "C:\Users\User_name\anaconda3"
© www.soinside.com 2019 - 2024. All rights reserved.