問題描述:anaconda安裝PySide出現了以下問題
ERROR: Command errored out with exit status 1:
command: 'd:\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\94435\\AppData\\Local\\Temp\\pip-install-tcbmzzis\\Pyside\\setup.py'"'"'; __file__='"'"'C:\\Users\\94435\\AppData\\Local\\Temp\\pip-install-tcbmzzis\\Pyside\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\94435\AppData\Local\Temp\pip-install-tcbmzzis\Pyside\
Complete output (1 lines):
only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
運行pycharm出現以下提示
好吧,既然沒有PySide,俺去安裝總行了吧。file-》settings-》右邊的加號-》搜索,如下圖:
若干次以後,俺放棄了,因爲老是安裝失敗。後來去了anaconda
依舊失敗,不過給出了一個重要信息,那就是PySide只支持2.6,2.7,3.2-3.4版本的python,那麼解決辦法來了,
pip install PySide2,OK!
重新回到pycharm,安裝PySide2,file-》settings-》右邊的加號-》搜索-》PySide2-》選中以後左下方有個install,一鍵解決所有的煩惱,完美。