Python was unable to install the "spacepy" module

I'm currently trying to install the Python spacepy package due to its ability to read CDF files, as well as several other useful features. However, at any time when I try to install this module, I get a huge number of errors - whether I try to install it through Anaconda, the command line or download the package manually and run setup.py from the package directory. I have currently spent several hours chasing these errors, but since I am not a programmer, it was slow.

I managed to β€œinstall” it, however, when I try to download it, the module throws an error:

Traceback (most recent call last):

  File "<ipython-input-1-4bcf91e29885>", line 1, in <module>
    import spacepy

  File "C:\Anaconda\lib\site-packages\spacepy\__init__.py", line 329, in <module>
    _read_config(rcfile)

  File "C:\Anaconda\lib\site-packages\spacepy\__init__.py", line 297, in _read_config
    _write_defaults(rcfile, defaults)

  File "C:\Anaconda\lib\site-packages\spacepy\__init__.py", line 236, in _write_defaults
    key=k, value=defaults[k], ver=__version__))

IOError: [Errno 0] Error

... , , .

, Python. , , Fortran ( MinGW), .

- , :

python -m pip install --upgrade --force-reinstall spacepy
+4
1

, , ( , ), numpy. Spacepy numpy v1.6 , , numpy (, v1.12).

numpy, Linux ( ), , . Linux!

+3

Source: https://habr.com/ru/post/1666862/


All Articles