Problem installing spyder

0

I am trying to install spyder directly without resorting to something anaconda or winpy. For this, I have installed python 2.7.13 and PyQt4. With that installed I tried to launch the command

pip install spyder

But I get the following error message:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc1 in position 9: ordinal not in range(128)

----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\users\lvarom~1\appdata\local\temp\pip-build-qnvhsd\scandir\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\lvarom~1\appdata\local\temp\pip-exbo4z-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\lvarom~1\appdata\local\temp\pip-build-qnvhsd\scandir\

I tried to install it from a .whl but with the same result

Does anyone know how to fix it?

    
asked by Álvaro Méndez Civieta 23.06.2017 в 19:21
source

1 answer

0

It is an error related to the coding of text strings.

Python 2.7 does not use unicode by default ( read more ) and maybe your name in the route ( Á lvaro) is giving you errors.

Recommendations:

  • Use Python 3.x that formats the strings as unicode and if you're starting is recommended.
  • If you do not want to install all of Anaconda's packages, you have miniconda that only installs Python and to install spyder you just have to write in a command window conda install spyder . If you decide to use it, first uninstall the Python of windows you have to avoid problems.
  • Actually, PyCharm is an IDE with free community version and much more powerful / stable / mature than Spyder. The learning curve is a bit higher but it is very well documented and worth it.
answered by 23.06.2017 / 19:31
source