簡體   English   中英

從命令窗口使用Python:在Windows 8上設置PATH變量:提供的圖片

[英]Using Python from a command window: Setting the PATH variable on Windows 8: Picture Provided

截至目前,這僅適用於:

設置路徑= C:\\ Python34

但是,每次打開cmd時都必須這樣做。

我正在嘗試設置一個永久變量

我嘗試按照以下步驟操作,但是沒有變量“路徑”,因此無法單擊對其進行編輯。 請看圖片的屏幕截圖。 任何幫助將不勝感激。 謝謝。

http://postimg.org/image/i8z8y8wcv/

press Start
select Control Panel
On the Control Panel window, in the left column, press Switch to classic view (If you don't see this text, go to the next step below.)
Double click on the icon for System
In the System window, click on Advanced
Click on the button Environment Variables
In the new window, scroll until you see the variable, Path; click on it
Press Edit
Carefully use the right arrow button to move to the end of the long sequence of folder names. At the very end, without including any extra blanks, type this:
;C:\Python24

設置路徑變量

您需要在系統變量部分中編輯路徑變量。 將以下內容添加到變量值的末尾:

C:\\Python34\\;C:\\Python34\\Scripts;

如果要為計算機上的所有用戶配置Python(通過更改System環境變量),只需單擊幾下即可。 這些變量按名稱的字母順序列出,因此PATH應該僅比PSModulePath高幾個檔位。 (請注意,修改系統的環境變量,您需要有管理員權限)。或者,如果有一個你沒有特權,或者你只需要為自己設置的,通過點擊創建一個新的用戶變量“新建...”在(下)的“ Roo用戶變量”部分。 輸入名稱作為PATH並輸入值C:\\Python34 如果將來需要將其他目錄添加到PATH,請使用分號將它們分開,例如C:\\Python34;C:\\Cobra42;C:\\Panda17

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM