** Addition ** Qt for Python 5.11 (Pyside2) was officially released, so I fixed only the link. The wording is old, but it has been confirmed that it can be dealt with in the same way.
It's a story on Windows. It is an Anaconda3-2.3.0 environment, but I think that it can be dealt with in other ways as well. I can handle errors other than my specific example.
When I tried to install PySide with the pip command from the command line according to the procedure on the official website, I got the following error.
C:\Users\User>pip install pyside
Collecting pyside
Using cached PySide-1.2.4.tar.gz
Installing collected packages: pyside
Running setup.py install for pyside
(Omission)
running install
running build
Python architecture is 64bit
nmake not found. Trying to initialize the MSVC env...
Searching MSVC compiler version 10.0
error: Failed to find the MSVC compiler version 10.0 on your system.
So, what to do is to download the .whl file that suits your environment from here (Index of / official_releases / pyside). You can avoid the error by installing the .whl file directly on the target.
C:\Users\User>pip install C:\Users\User\Downloads\PySide-1.2.4-cp34-none-win_amd64.whl
Processing c:\users\User\downloads\pyside-1.2.4-cp34-none-win_amd64.whl
Installing collected packages: PySide
Successfully installed PySide-1.2.4
There is no error phenomenon, pip is originally a mechanism to build and install, but PySide, which is not Python code (C ++?), Needs a C ++ compiler to build and install. It would be fine if the environment was set up around here, but it was troublesome, so I was talking about using a pre-built packaged binary file (**. Whl).
Recommended Posts