简体   繁体   English

我们如何在环境变量中添加 pycharm 的路径

[英]How can we add path for pycharm in the environment variables

When I type in cmd like this:当我这样输入 cmd 时:

G:\python-project\first>pycharm64. 

I get the following output:我得到以下 output:

Pycharm is not recognized as internal or external command, operable program or batch file Pycharm 未被识别为内部或外部命令、可运行程序或批处理文件

You need to find the "bin" folder under your Pycharm installation location and put that in the Path environment variable.您需要在您的 Pycharm 安装位置下找到“bin”文件夹并将其放入 Path 环境变量中。

To find the bin folder location:要找到 bin 文件夹位置:

  1. Open Windows start menu and start typing PyCharm打开Windows开始菜单,开始输入PyCharm
  2. Right click on the icon go to "More > Open File Location"右键单击图标 go 到“更多 > 打开文件位置”
  3. Right click in the location on the Pycharm icon and Select "Properties"右击Pycharm图标和Select“属性”位置
  4. Select "Open File Location Button" Select “打开文件位置按钮”
  5. Copy This Path复制此路径

To edit the path variable编辑路径变量

  1. Open Windows start menu and start typing "environment variables"打开Windows开始菜单,开始输入“环境变量”
  2. Select "Edit the System Environment Variables" Select “编辑系统环境变量”
  3. On the popup click on the button "Environment Variables..."在弹出窗口中单击“环境变量...”按钮
  4. Under the System Variables section find the Path Variable在系统变量部分找到路径变量
  5. Click the button "Edit"单击“编辑”按钮
  6. Add a New entry with a value of the copied Path添加具有复制路径值的条目
  7. Save settings and close all windows保存设置并关闭所有 windows

Open a NEW terminal and you can enter your command打开一个的终端,你可以输入你的命令

Note: Steps might be slightly different depending on your version of the Windows OS注意:步骤可能略有不同,具体取决于您的 Windows 操作系统版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM