I try to install scipy via pip but I face this error:

[31mException:

Traceback (most recent call last):

File "", line 2, in

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\__init__.py", line 107, in

from scipy._lib._version import NumpyVersion as _NumpyVersion

ModuleNotFoundError: No module named 'scipy._lib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\basecommand.py", line 215, in main

status = self.run(options, args)

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\commands\install.py", line 335, in run

wb.build(autobuilding=True)

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\wheel.py", line 749, in build

self.requirement_set.prepare_files(self.finder)

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files

ignore_dependencies=self.ignore_dependencies))

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_set.py", line 634, in _prepare_file

abstract_dist.prep_for_dist()

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_set.py", line 129, in prep_for_dist

self.req_to_install.run_egg_info()

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_install.py", line 439, in run_egg_info

command_desc='python setup.py egg_info')

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess

line = console_to_str(proc.stdout.readline())

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str

return s.decode(sys.__stdout__.encoding)

AttributeError: 'NoneType' object has no attribute 'encoding'[0m

2

Traceback (most recent call last):

File "", line 2, in

import scipy

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\__init__.py", line 107, in

from scipy._lib._version import NumpyVersion as _NumpyVersion

ModuleNotFoundError: No module named 'scipy._lib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 6, in

import scipy

File "C:\Users\user pc\AppData\Local\Programs\Python\Python36\lib\site-packages\scipy\__init__.py", line 107, in

from scipy._lib._version import NumpyVersion as _NumpyVersion

ModuleNotFoundError: No module named 'scipy._lib'

More Iman Rahimi's questions See All
Similar questions and discussions