1
目前我正在關注這個guide設置python的目的是使python刮板。我試圖安裝Vitualenvwrapper這應該是一個簡單的點命令,但我不斷收到語法錯誤。我試圖列出修復程序(即使我找到的修復程序沒有列出語法錯誤作爲問題)。任何人都可以爲我闡明這一點嗎?virtualenvwrapper語法錯誤,同時在PowerShell中設置python
$ C:\Users\nik> pip install virtualenvwrapper-powershell
Collecting virtualenvwrapper-powershell
Using cached virtualenvwrapper-powershell-12.7.8.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\nik\AppData\Local\Temp\pip-build-c37hzy_b\virtualenvwrapper-powershell\setup.py", line 76
TOKEN_READ = 0x00020000L | 0x0008
^
SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in C:\Users\nik\AppData\Local\Temp\pip-build-c37hzy_b\virtualenvwrapper-powershell\
看起來你試圖在Python 3.x中運行Python 2.x代碼。 (語法'0x00020000L'用來做一個長整數,現在是一個錯誤)。我看到你的鏈接指南說「*你將需要Python 2.x *」 – TessellatingHeckler
我有兩個版本的python,所以可能是這樣,我會嘗試卸載一個,並回到你身邊 –