[PYTHON] Workaround if you get an error when trying to install PySide with pip

** 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

Workaround if you get an error when trying to install PySide with pip
I get an error when trying to install maec 4.0.1.0 with pip
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get an error when trying to load mnist
What to do if you get an error when installing python with pyenv
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you get a UnicodeDecodeError with pip install
What to do if you get an error when installing Dlib (Ubuntu)
A memorandum when an error occurs with pip install
If you get a long error when tabbing an interactive shell with Anaconda
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you can't install pyaudio with pip #Python
When I get an error with PyInstaller
Read this if you get SSL related errors with pip install! !! !!
[TensorFlow] If you want to run TensorBoard, install it with pip
What to do if you get an error when running "certbot renew" in CakePHP environment
If you should have pip installed but get an Import error
What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
What to do if you get a must override `get_config` error when trying to model.save in Keras
I got an error when trying to install Xgboost and its solution
What to do if pyenv install does not proceed with an error
What to do if an error occurs when importing numpy with VScode
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip
Error when trying to install psycopg2 in Python
Error with pip install
What to do if you get a Permission denied (public key) error when trying to pull on Github
Install openstack client from pip so you don't get an error on CentOS7
An error occurs when trying to import scikit-learn after connecting to Oracle with SQLAlchemy
What to do if you can't pip install mysqlclient
If you get hooked on pip install dlib on OSX
I get an error when trying meinheld + WebSocket + mongodb
When you get an error in python scraping (requests)
What to do if you get an "unknown service" error from your gRPC server
When moss with pip install
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
When I try to install mysqlclient with Django, I get error: command'gcc' failed with exit status 1.
For those who are in trouble with an error when pip install xg boost
I got an error when pip install pandas on Mac, so I dealt with it
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
[AWS] What to do when you want to pip with Lambda
I get [Error 2055] when trying to connect to MySQL on Heroku
What to do when an error occurs with import _ssl
I got an error when pip install tweepy on macOS Sierra, so I dealt with it
What to do when you get an error saying "Name resolution temporarily failed" on linux
Addresses an issue where an error does not occur even if the path does not pass when trying to read an image with cv2.imread ()
How to install mysql-connector with pip3
Proxy error when running "pip install"
# Solution when pip install gives an error when using Anaconda on Windows 10
[Beanstalk] What to do when an error occurs with import uuid
When I get an error with Pylint in Atom on Windows
If you get angry with "too few updates ~" when running LdaModel
When you want to send an object with requests using flask
What to do if you get an error saying c compiler cannot create executables in configure
What to do if pip --user returns an error in a virtual environment created with pyenv
I get an error with import pandas.
Workaround if you cannot add to LD_LIBRARY_PATH