Python Forum
sklearn imported but not recognized
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sklearn imported but not recognized
#4
I so very much appreciate your reply and assistance.
Although in my forum post i did add the dot in the IDE I got it right. sorry for that.

I tried to download scipy and now i am down the rabbit hole and get the following:


when I type pip list

it returns:

certifi (2017.4.17)
chardet (3.0.4)
cycler (0.10.0)
functools32 (3.2.3.post2)
idna (2.5)
matplotlib (2.0.2)
nltk (3.2.4)
numpy (1.13.0)
oauthlib (2.0.2)
olefile (0.44)
pandas (0.20.2)
Pillow (4.1.1)
pip (9.0.1)
pyparsing (2.2.0)
python-dateutil (2.6.0)
pytz (2017.2)
requests (2.18.1)
requests-oauthlib (0.8.0)
scikit-learn (0.18.1)
setuptools (20.10.1)
six (1.10.0)
sklearn (0.0)
textblob (0.12.0)
tweepy (3.5.0)
urllib3 (1.21.1)

When i type
C:\Python27\Scripts>pip install scipy

I get:

Collecting scipy
Using cached scipy-0.19.0.zip
Installing collected packages: scipy
Running setup.py install for scipy ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools
, tokenize;__file__='c:\\users\\*****\\appdata\\local\\temp\\pip-build-ugqw2s\\
scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().repla
ce('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --reco
rd c:\users\*****\appdata\local\temp\pip-wokake-record\install-record.txt --sin
gle-version-externally-managed --compile:

Note: if you need reliable uninstall behavior, then install
with pip instead of using setup.py install:

- pip install . (from a git repo or downloaded source
release)
- pip install scipy (last SciPy release on PyPI)


lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['c:\\python27\\lib', 'C:\\', 'c:\\python27\
\libs']
NOT AVAILABLE

openblas_lapack_info:
libraries openblas not found in ['c:\\python27\\lib', 'C:\\', 'c:\\python2
7\\libs']
NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
c:\python27\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarni
ng: Specified path C:\projects\numpy-wheels-jc1cl\windows-wheel-builder\atlas-bu
ilds\atlas-3.10.1-sse2-32\lib is invalid.
pre_dirs = system_info.get_paths(self, section, key)
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE

atlas_3_10_info:
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE

atlas_info:
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE

c:\python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarnin
g:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
lapack_info:
libraries lapack not found in ['c:\\python27\\lib', 'C:\\', 'c:\\python27\
\libs']
NOT AVAILABLE

c:\python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarnin
g:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
lapack_src_info:
NOT AVAILABLE

c:\python27\lib\site-packages\numpy\distutils\system_info.py:572: UserWarnin
g:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
NOT AVAILABLE

Running from scipy source directory.
non-existing path in 'scipy\\integrate': 'quadpack.h'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\ethang\appdata\local\temp\pip-build-ugqw2s\scipy\setup.py",
line 416, in <module>
setup_package()
File "c:\users\ethang\appdata\local\temp\pip-build-ugqw2s\scipy\setup.py",
line 412, in setup_package
setup(**metadata)
File "c:\python27\lib\site-packages\numpy\distutils\core.py", line 135, in
setup
config = configuration()
File "c:\users\ethang\appdata\local\temp\pip-build-ugqw2s\scipy\setup.py",
line 336, in configuration
config.add_subpackage('scipy')
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 10
29, in add_subpackage
caller_level = 2)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 99
8, in get_subpackage
caller_level = caller_level + 1)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 93
5, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 10
29, in add_subpackage
caller_level = 2)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 99
8, in get_subpackage
caller_level = caller_level + 1)
File "c:\python27\lib\site-packages\numpy\distutils\misc_util.py", line 93
5, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\linalg\setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\ethang\\appdata\\local\\temp\\pip-build-ugqw2s\\scipy\\setup.py';f=getat
tr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close
();exec(compile(code, __file__, 'exec'))" install --record c:\users\ethang\appda
ta\local\temp\pip-wokake-record\install-record.txt --single-version-externally-m
anaged --compile" failed with error code 1 in c:\users\ethang\appdata\local\temp
\pip-build-ugqw2s\scipy\
Reply


Messages In This Thread
sklearn imported but not recognized - by kerberg - Jun-17-2017, 12:15 PM
RE: sklearn imported but not recognized - by kerberg - Jun-17-2017, 06:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Column Transformer with Mixed Types - sklearn aaldb 0 402 Feb-22-2024, 03:27 PM
Last Post: aaldb
  Checking for a recognized text in a Dataframe KDE 0 1,571 Aug-31-2021, 11:19 PM
Last Post: KDE
  sklearn.neural_network MLPClassifier forecast variances CK1960 1 1,860 Oct-29-2020, 10:13 AM
Last Post: CK1960
  Customizing an sklearn submodule with cython JHogg11 0 2,001 May-27-2020, 05:39 PM
Last Post: JHogg11
  sklearn and train_test_split nsadams87xx 1 1,879 Apr-23-2020, 05:32 PM
Last Post: jefsummers
  Error When Using sklearn Predict Function firebird 0 2,097 Mar-21-2020, 04:34 PM
Last Post: firebird
  Outputing LogisticRegression Coefficients (sklearn) RawlinsCross 6 4,893 Feb-27-2020, 02:47 PM
Last Post: RawlinsCross
  Predicting an output variable with sklearn Ccross1 1 2,566 Jun-04-2019, 03:11 PM
Last Post: michalmonday
  loading a csv file into python from pandas. Variable is not recognized vijjumodi 2 2,970 Apr-19-2019, 04:09 AM
Last Post: kus
  sklearn regression to excel punksnotdead 1 2,819 Apr-14-2019, 12:32 PM
Last Post: punksnotdead

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020